Re: What is the sate of LDC?

2009-03-24 Thread Lutger
bearophile wrote: .. > (Eventually I'd like to see a project like dlang, a D clang-like front-end for LLVM written in D, replace LDC, but this will require a ton of work. So it's mostly a dream now). Sounds like dil: http://code.google.com/p/dil/

Re: I hate ".dup"

2009-03-24 Thread Qian Xu
Steven Schveighoffer wrote: TimeStamp.iso8601(..) does not call the parse() function. The bug was in parseInt. Please try it. It worth a try. I have added too many ".dup" in my code. I will confirm this ASAP. Thanks for your information ^^) -- Xu, Qian (stanleyxu) http://stanleyxu2005.

Re: I hate ".dup"

2009-03-24 Thread Steven Schveighoffer
On Tue, 24 Mar 2009 12:26:29 -0400, Qian Xu wrote: Steven Schveighoffer wrote: Coincidentally, someone else discovered a buffer-overrun bug in tango.text.convert.TimeStamp, see http://www.dsource.org/projects/tango/forums/topic/704 Please try downloading the latest trunk code and see if yo

Re: I hate ".dup"

2009-03-24 Thread Qian Xu
Steven Schveighoffer wrote: > > Coincidentally, someone else discovered a buffer-overrun bug in > tango.text.convert.TimeStamp, see > http://www.dsource.org/projects/tango/forums/topic/704 > > Please try downloading the latest trunk code and see if your code still > fails. > > You should not hav

Re: getting mutable type from T

2009-03-24 Thread Lutger
Jarrett Billingsley wrote: .. > std.traits.Mutable!(T). Ah thanks! Too obvious. In case somebody would like to know: static if (is(T U == const(U))) alias U Mutable; else static if (is(T U == immutable(U))) alias U Mutable;

Re: getting mutable type from T

2009-03-24 Thread Jarrett Billingsley
On Tue, Mar 24, 2009 at 6:33 AM, Lutger wrote: > How can I get the mutable type from any type T in a generic function or > template, assuming T is const or immutable? > > > std.traits.Mutable!(T).

getting mutable type from T

2009-03-24 Thread Lutger
How can I get the mutable type from any type T in a generic function or template, assuming T is const or immutable?