DMD 1.005 release

janderson askme at me.com
Tue Feb 6 20:32:35 PST 2007


BCS wrote:
> janderson wrote:
>> Walter Bright wrote:
>>
>>> Fixes many bugs, some serious.
>>>
>>> Some new goodies.
>>>
>>> http://www.digitalmars.com/d/changelog.html
>>>
>>> http://ftp.digitalmars.com/dmd.1.005.zip
>>
>>
>> The import stuff has been part of C for a long time (in the form of 
>> #include), however I've never seen it used.  Maybe with string 
>> operations it will be useful, but otherwise I don't see the point.
>>
>> =Joel
> 
> not quite, I don't think this works in c
> 
> char string[] = "#import<bigstring.txt>"
> 
> sting gets the value of "#import<bigstring.txt>", not the contents of 
> "bigstring.txt"

No but you could do:

char* string =
#import "bigstring.txt"

and have quotes in the bigstring.txt

D's look nicer but its been around for ages.  I'm sure combining it with 
the mixins will make all the difference.

-Joel



More information about the Digitalmars-d-announce mailing list