DMD 1.005 release

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Feb 13 03:09:48 PST 2007


Don Clugston wrote:
> Walter Bright wrote:
>> Bruno Medeiros wrote:
>>> Well, actually you can do that, with the unannounced (in the 
>>> changelog) .stringof property ( 
>>> http://www.digitalmars.com/d/property.html ) :
>>>
>>> ----
>>>
>>> template MakeVariable(Type, char[] name)
>>> {
>>>   const char[] MakeVariable = Type.stringof ~ " " ~ name ~ ";";
>>> }
>>
>> It's unannounced because it doesn't work right yet.
> 
> <trashes meta.nameof>
> It was a piece of code I was particularly proud of. Ah well.
> </trashes>
> 
> It seems that 90% of the metaprogramming code I've ever written has been 
> made obsolete by being incorporated into the code language.
> My 'workarounds' file went from 16 entries to zero.
> 
> But the ability to do it for an expression as well is quite exciting; it 
> seems that this could easily supercede lazy parameters.
> So I'm not complaining <g>.

Heh, you should see what happened to Pyd when tuples were introduced to 
the language. In fact, thanks to the magic of Subversion, you can!

http://dsource.org/projects/pyd/changeset/45

Ohh, lookit all the huge, pretty red sections.

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org



More information about the Digitalmars-d-announce mailing list