Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sun, 06 Dec 2009 03:35:42 +0100, Walter Bright wrote: Simen kjaeraas wrote: I get a compile error: std\conv.d(2506): Error: undefined identifier module traits.staticIndexOf Line 2506 in std.conv should be changed from if (std.traits.staticIndexOf!(Unqual!S, uint, ulong) >= 0 && i

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Walter Bright
Simen kjaeraas wrote: I get a compile error: std\conv.d(2506): Error: undefined identifier module traits.staticIndexOf Line 2506 in std.conv should be changed from if (std.traits.staticIndexOf!(Unqual!S, uint, ulong) >= 0 && isSomeString!T) to if (std.typetuple.staticIndexOf!(Unqual!S, ui

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Simen kjaeraas
On Sat, 05 Dec 2009 05:05:13 +0100, Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks

Re: TDPL draft updated on Safari Rough Cuts

2009-12-05 Thread Grzegorz Adam Hankiewicz
Andrei Alexandrescu escribió: A little off topic but is May 17, 2010 the confirmed publication date of TDPL as advertised by Amazon? Yes. We're hoping for earlier, but if past performance is any indicator... Sad to hear. I thought it was going to be available by the end of this year. Hopeful

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
dsimcha wrote: == Quote from Don (nos...@nospam.com)'s article All kinds of stuff is still missing. a ^^ b won't be constant-folded, for example. It's desperately important that the language spec becomes stable before Andrei's book comes out. That leaves only a couple more releases left in D2 wh

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread dsimcha
== Quote from Don (nos...@nospam.com)'s article > All kinds of stuff is still missing. a ^^ b won't be constant-folded, > for example. > It's desperately important that the language spec becomes stable before > Andrei's book comes out. That leaves only a couple more releases left in > D2 where feat

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
Ary Borenszweig wrote: bearophile wrote: 5 ^^ 2 doesn't work yet, I guess it's not implemented yet. But what do I have to import from math to use 5.2 ^^ 2 ? Anyway, the need to explicitly import something to use a built-in operator like ^^ looks like a bad idea. A very bad idea indeed! The id

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread bearophile
Ary Borenszweig: > Can't "import std.math : pow;" be added to the current module when this > is needed? Note that this code doesn't compile: import std.stdio: writeln; import std.math: pow; void main() { writeln(5.2 ^^ 2); } This is what the compiler shows: test.d(5): Error: undefined ide

Re: TDPL draft updated on Safari Rough Cuts

2009-12-05 Thread Andrei Alexandrescu
breezes wrote: Andrei Alexandrescu Wrote: After a very long delay, Safari finally updated the TDPL draft on their Rough Cuts service (http://my.safaribooksonline.com/roughcuts). They claim things will be back to normal now, and that another update (containing almost the entire book) is due in

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Leandro Lucarella
Walter Bright, el 4 de diciembre a las 20:05 me escribiste: > Probably the biggest thing is opDispatch! > > http://www.digitalmars.com/d/1.0/changelog.html > http://ftp.digitalmars.com/dmd.1.053.zip > > > http://www.digitalmars.com/d/2.0/changelog.html > http://ftp.digitalmars.com/dmd.2.037.zip

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Ary Borenszweig
bearophile wrote: 5 ^^ 2 doesn't work yet, I guess it's not implemented yet. But what do I have to import from math to use 5.2 ^^ 2 ? Anyway, the need to explicitly import something to use a built-in operator like ^^ looks like a bad idea. A very bad idea indeed! The idea is to save keystrokes

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Nick Sabalausky
"Max Samukha" wrote in message news:pkvkh5tvvhie0ga61lrpp5qmt53h5ju...@4ax.com... > On Sat, 5 Dec 2009 10:19:23 -0500, "Nick Sabalausky" wrote: > >>"bearophile" wrote in message >>news:hfdt87$1nu...@digitalmars.com... >>> There's a large number of changes! >>> I don't understand what "No more c

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Max Samukha
On Sat, 5 Dec 2009 10:19:23 -0500, "Nick Sabalausky" wrote: >"bearophile" wrote in message >news:hfdt87$1nu...@digitalmars.com... >> There's a large number of changes! >> I don't understand what "No more comma operators allowed between [ ]." >> means. >> > >I assume that means: > >int[1,2,3] f

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread bearophile
Nick Sabalausky: > I assume that means: > > int[1,2,3] foo; // <- formerly created an int[3], now (presumably) > disallowed Yes, you are right, that's probably it, thank you. Bye, bearophile

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Nick Sabalausky
"bearophile" wrote in message news:hfdt87$1nu...@digitalmars.com... > There's a large number of changes! > I don't understand what "No more comma operators allowed between [ ]." > means. > I assume that means: int[1,2,3] foo; // <- formerly created an int[3], now (presumably) disallowed

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread bearophile
There's a large number of changes! I don't understand what "No more comma operators allowed between [ ]." means. I have tried the D2 compiler a little with this code: import std.stdio: writeln; import std.math: pow; struct S1 { int x; } void main() { struct S2 { int x; } static struct S

Re: TDPL draft updated on Safari Rough Cuts

2009-12-05 Thread breezes
Andrei Alexandrescu Wrote: > After a very long delay, Safari finally updated the TDPL draft on their > Rough Cuts service (http://my.safaribooksonline.com/roughcuts). They > claim things will be back to normal now, and that another update > (containing almost the entire book) is due in a week.

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
Extrawurst wrote: Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous peopl

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous people who contributed t

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Extrawurst
Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous people who contributed t

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
Extrawurst wrote: Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous peopl

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Don
Extrawurst wrote: Extrawurst wrote: Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Extrawurst
Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous people who contributed t

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Extrawurst
Extrawurst wrote: Extrawurst wrote: Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Extrawurst
Extrawurst wrote: Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous peopl

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Extrawurst
Walter Bright wrote: Probably the biggest thing is opDispatch! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.053.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.037.zip Many thanks to the numerous people who contributed t

Re: dmd 1.053 and 2.037 release

2009-12-05 Thread Max Samukha
On Fri, 04 Dec 2009 20:05:13 -0800, Walter Bright wrote: >Probably the biggest thing is opDispatch! > >http://www.digitalmars.com/d/1.0/changelog.html >http://ftp.digitalmars.com/dmd.1.053.zip > > >http://www.digitalmars.com/d/2.0/changelog.html >http://ftp.digitalmars.com/dmd.2.037.zip > >Many t