Format specs idea

2009-04-21 Thread Georg Wrede
Andrei Alexandrescu wrote: Nick Sabalausky wrote: BCS a...@pathlink.com wrote Reply to Nick, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:gsiqdr$1cs...@digitalmars.com... BCS wrote: One option would be to not throw an error if the format string uses indexing

Re: dmd 2.029 release

2009-04-21 Thread Max Samukha
On Mon, 20 Apr 2009 00:09:09 -0700, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip Wicked awesome!

Re: dmd 2.029 release

2009-04-21 Thread Max Samukha
On Mon, 20 Apr 2009 09:57:55 +0200, Max Samukha samu...@voliacable.com.removethis wrote: On Mon, 20 Apr 2009 00:09:09 -0700, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support.

Re: DCat - a compact web application server in D.

2009-04-21 Thread Jacob Carlborg
Steve Teale wrote: Jacob Carlborg Wrote: Steve Teale wrote: Michel Fortin Wrote: On 2009-04-19 15:19:24 -0400, Steve Teale steve.te...@britseyeview.com said: This is incomplete at this point, but there's a working example. I have to break off now and do some building work. You can find

Re: dmd 2.029 release

2009-04-21 Thread Lars T. Kyllingstad
Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to switch from D1 to D2, but... I don't want to sound

Re: dmd 2.029 release

2009-04-21 Thread Frits van Bommel
Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to switch from D1 to D2,

Re: dmd 2.029 release

2009-04-21 Thread Frits van Bommel
Daniel Keep wrote: Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to switch

Re: dmd 2.029 release

2009-04-21 Thread Lutger
Daniel Keep wrote: ... -Lars The best bet for 64-bit D executables at this point is probably LDC; dunno what the current state is, though. -- Daniel if you grep the dmd backend sources for x86_64, you'll get some results. Don't know what that means though, the source looks like magic

Re: dmd 2.029 release

2009-04-21 Thread Andrei Alexandrescu
Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to switch from D1 to D2,

Re: dmd 2.029 release

2009-04-21 Thread Andrei Alexandrescu
Max Samukha wrote: On Mon, 20 Apr 2009 09:57:55 +0200, Max Samukha samu...@voliacable.com.removethis wrote: On Mon, 20 Apr 2009 00:09:09 -0700, Walter Bright newshou...@digitalmars.com wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support.

Re: dmd 2.029 release

2009-04-21 Thread Lars T. Kyllingstad
Andrei Alexandrescu wrote: Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.029.zip This is looking very nice! I want to

Re: dmd 2.029 release

2009-04-21 Thread Leandro Lucarella
Georg Wrede, el 21 de abril a las 09:25 me escribiste: What's sad, http://en.wikipedia.org/wiki/Standard_Template_Library really sucks at introducing the STL on a conceptual level. Even worse, that is actually the only thing it *should* do. Everyting else is optional. You should improve it

Re: dmd 2.029 release

2009-04-21 Thread bearophile
Don: From 2.208: 2804 Impure nested functions should be legal inside pure functions Very good. Now that little example works: import std.c.stdio: printf; import std.conv: to; pure int double_sqr(int x) { int y, z; void do_sqr() { y *= y; } y = x; do_sqr(); z += y; y =

Re: dmd 2.029 release

2009-04-21 Thread Leandro Lucarella
Andrei Alexandrescu, el 21 de abril a las 07:38 me escribiste: Lars T. Kyllingstad wrote: Walter Bright wrote: This is a major revision to Phobos, including Andrei's revolutionary new range support. http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 2.029 release

2009-04-21 Thread bearophile
I have also tested the semantics of nested function purity: import std.c.stdio: printf; import std.conv: to; pure int double_sqr(int x) { pure int sqr(int y) { return y * y; } return sqr(x) + sqr(x); } void main(string[] args) { int x = args.length == 2 ? to!(int)(args[1]) : 10;

Re: dmd 2.029 release

2009-04-21 Thread Don
bearophile wrote: I have tried the following code: import std.c.stdio: printf; import std.conv: to; nothrow pure int double_sqr(int x) { // line 4 int y, z; nothrow void do_sqr() { y *= y; } y = x; do_sqr(); z += y; y = x; do_sqr(); z += y; return z; } void

Re: dmd 2.029 release

2009-04-21 Thread bearophile
Don: Yes. Actually, marking a nested function as pure doesn't make much sense. It's entirely equivalent to moving it outside the function; [...] I'm not sure that nested pure member functions should be legal. It's not fully equivalent to moving it out of the function because once you pull it

ACCU conference

2009-04-21 Thread Walter Bright
I'm off to speak at it! http://accu.org/index.php/conferences/accu_conference_2009/accu2009_speakers

Re: dmd 2.029 release

2009-04-21 Thread Walter Bright
Lutger wrote: what the hell...this code can't be human. I was replaced by Colossus years ago.

Re: dmd 2.029 release

2009-04-21 Thread Don
bearophile wrote: Don: Yes. Actually, marking a nested function as pure doesn't make much sense. It's entirely equivalent to moving it outside the function; [...] I'm not sure that nested pure member functions should be legal. It's not fully equivalent to moving it out of the function because

Re: dmd 2.029 release

2009-04-21 Thread Stewart Gordon
Walter Bright wrote: Stewart Gordon wrote: Walter, how often do you update your working copy from the SVN? Obviously less than once every 2 releases. As far as I know, it is current. Everything got checked in. So how has the fix for http://d.puremagic.com/issues/show_bug.cgi?id=2580 (and

Re: dmd 2.029 release

2009-04-21 Thread Georg Wrede
Walter Bright wrote: Lutger wrote: what the hell...this code can't be human. I was replaced by Colossus years ago. Michael A. Jackson wouldn't approve 1175 gotos in 113 files.

std.bigint is missing from 2.029 release

2009-04-21 Thread Paul D. Anderson
I didn't mind so much when bigint was missing from the preview, but I hoped it would be in the actual release! :0 Paul

Re: dmd 2.029 release

2009-04-21 Thread Michel Fortin
On 2009-04-21 11:18:39 -0400, Don nos...@nospam.com said: Yes. Actually, marking a nested function as pure doesn't make much sense. It's entirely equivalent to moving it outside the function; a nested pure function shouldn't be able to access any members of the enclosing function, otherwise