January 02, 2008 General » Casting const/invariant | |||
|---|---|---|---|
| |||
...worthwhile, some framework for specifying when these outputs can be used as exclusive access (AKA... | |||
January 02, 2008 General » Re: about the new const regime | |||
|---|---|---|---|
| |||
...p, *p2); // outputs 55 int y = 6; p = &y; writefln(*p, *p2); // outputs 65 Assigning... | |||
December 13, 2007 Issues » [Issue 1727] Associate Array Literals regression | |||
|---|---|---|---|
| |||
...assert(aa["cc"]==3);
writefln(aa["aa"],aa["bb"],aa["cc"]); // On GDC outputs: 123
}
--
| |||
December 05, 2007 General » Re: Memory allocation in D (noob question) | |||
|---|---|---|---|
| |||
...a ~= "c";
writefln("ab = ",ab); // outputs "ab"
writefln("a = ",a); // outputs "ac"
So it seems... | |||
December 05, 2007 General » Re: Memory allocation in D (noob question) | |||
|---|---|---|---|
| |||
...1];
> a ~= "c";
> writefln("ab = ",ab); // also outputs "ac"
True for 'a' but when appending... | |||
December 04, 2007 General » Re: Memory allocation in D (noob question) | |||
|---|---|---|---|
| |||
Outputs "ac" So this appears to be a bug then. Because from the spec: "Concatenation... | |||
November 27, 2007 General » Re: How to determine constness at compile time? | |||
|---|---|---|---|
| |||
...constID!(const(char)*));
writefln(constID!(invariant(char)*));
}
outputs:
0
1
2
0
1
2
-Steve
| |||
November 07, 2007 General » Re: Help with template problem | |||
|---|---|---|---|
| |||
...typeof(this).stringof); to the constructor it outputs "A". Lets assume this is a bug... | |||
November 07, 2007 General » Re: How to create a static build | |||
|---|---|---|---|
| |||
...dmd, just copy the link line it outputs to gcc and add the -static argument... | |||
November 06, 2007 Learn » how do I make an alias for a const version of an alias in D 2.0? | |||
|---|---|---|---|
| |||
...pragma(msg, C_PCHAR2.stringof); } compiling this outputs: const char* char* const char* Note that... | |||
Copyright © 1999-2021 by the D Language Foundation