Jump to page: 1 211  
Page
Thread overview
DMD 1.019 and 2.003 releases
Jul 22, 2007
Walter Bright
Jul 22, 2007
Robert Fraser
Jul 23, 2007
Walter Bright
Jul 23, 2007
Sean Kelly
Jul 23, 2007
Walter Bright
Jul 23, 2007
Sean Kelly
Jul 23, 2007
Robert Fraser
Jul 24, 2007
Serg Kovrov
Jul 22, 2007
Kirk McDonald
Jul 23, 2007
Walter Bright
Jul 23, 2007
BCS
Jul 23, 2007
Walter Bright
Jul 23, 2007
Kirk McDonald
Jul 23, 2007
Walter Bright
Jul 24, 2007
Pragma
Jul 24, 2007
Kirk McDonald
Jul 24, 2007
Pragma
Jul 23, 2007
Jascha Wetzel
Jul 23, 2007
Walter Bright
Jul 23, 2007
Max Samukha
Jul 23, 2007
Walter Bright
Jul 23, 2007
Aarti_pl
Jul 23, 2007
Christian Kamm
Jul 23, 2007
Walter Bright
Jul 23, 2007
Don Clugston
Jul 23, 2007
Walter Bright
Jul 23, 2007
Don Clugston
Jul 23, 2007
Frits van Bommel
Jul 23, 2007
Walter Bright
Jul 23, 2007
Derek Parnell
Jul 23, 2007
Walter Bright
Jul 23, 2007
Derek Parnell
Jul 23, 2007
BCS
Jul 24, 2007
James Dennett
Jul 24, 2007
Derek Parnell
Jul 24, 2007
0ffh
Jul 24, 2007
Derek Parnell
Jul 24, 2007
BCS
Jul 24, 2007
0ffh
Jul 24, 2007
BCS
Jul 24, 2007
0ffh
Jul 25, 2007
Robert Fraser
Jul 25, 2007
Derek Parnell
Jul 25, 2007
Regan Heath
Jul 25, 2007
0ffh
Jul 26, 2007
James Dennett
Jul 25, 2007
0ffh
Jul 26, 2007
James Dennett
Jul 26, 2007
0ffh
Jul 27, 2007
0ffh
Jul 28, 2007
James Dennett
Jul 24, 2007
James Dennett
Jul 24, 2007
BCS
Jul 25, 2007
Paul Findlay
Jul 24, 2007
0ffh
Jul 24, 2007
Walter Bright
Jul 24, 2007
James Dennett
Jul 24, 2007
BCS
Jul 24, 2007
James Dennett
Jul 24, 2007
BCS
Jul 24, 2007
James Dennett
Jul 24, 2007
Bill Baxter
Jul 25, 2007
renoX
Jul 25, 2007
Russell Lewis
Jul 25, 2007
BCS
Jul 24, 2007
Walter Bright
Jul 24, 2007
0ffh
Jul 24, 2007
Georg Wrede
Jul 25, 2007
Pragma
Jul 24, 2007
Walter Bright
Jul 24, 2007
Frits van Bommel
Jul 24, 2007
BCS
Jul 25, 2007
Walter Bright
Jul 25, 2007
Bruno Medeiros
Jul 25, 2007
Walter Bright
Jul 23, 2007
Don Clugston
Jul 23, 2007
Walter Bright
Jul 23, 2007
Christian Kamm
Jul 23, 2007
Craig Black
Jul 23, 2007
Christian Kamm
Jul 23, 2007
Robert Fraser
Jul 23, 2007
Bastiaan Veelo
Jul 23, 2007
Craig Black
Jul 23, 2007
Walter Bright
Jul 23, 2007
Walter Bright
Jul 23, 2007
Carlos Santander
Jul 23, 2007
Walter Bright
Jul 25, 2007
Carlos Santander
Jul 25, 2007
Walter Bright
Jul 25, 2007
Carlos Santander
Jul 24, 2007
Robert Fraser
Jul 24, 2007
Lutger
Jul 26, 2007
Lionello Lunesu
Jul 27, 2007
Daniel Keep
Aug 05, 2007
dennis luehring
July 22, 2007
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.019.zip

http://www.digitalmars.com/d/changelog.html
http://ftp.digitalmars.com/dmd.2.003.zip
July 22, 2007
Beautiful! Just when I think D can't get better, it does! Thanks for all the hard work.

May I ask why you put the road there before traits? I know there's a std.traits, but perhaps a different keyword entirely or just a single underscore might be more appropriate...? It looks a bit like a compiler-specific extension to me...

Walter Bright Wrote:

> 
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.019.zip
> 
> http://www.digitalmars.com/d/changelog.html http://ftp.digitalmars.com/dmd.2.003.zip

July 22, 2007
Walter Bright wrote:
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.019.zip
> 
> http://www.digitalmars.com/d/changelog.html
> http://ftp.digitalmars.com/dmd.2.003.zip

In the spec for the new ForeachRangeStatement, it says:

"If Foreach is foreach, then the variable is set to LwrExpression, then incremented at the end of each iteration."

What does "incremented" mean, exactly? If have a class or struct that defines opAddAssign, would it call foo.opAddAssign(1) (as ++foo does)? Similarly, would the foreach_reverse form call foo.opSubAssign(1)?

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
July 23, 2007
Walter Bright wrote:
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.019.zip
> 
> http://www.digitalmars.com/d/changelog.html
> http://ftp.digitalmars.com/dmd.2.003.zip

Well, this __traits stuff is certainly going to give me something to think about. One note: the lexical page doesn't seem to list it as a keyword.

How many times have I rewritten Pyd? Three? Well, no matter. This should make things interesting again.

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
July 23, 2007
Walter Bright wrote:
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.019.zip
> 
> http://www.digitalmars.com/d/changelog.html
> http://ftp.digitalmars.com/dmd.2.003.zip

new toys! neat! thanks :)
July 23, 2007
"Walter Bright" <newshound1@digitalmars.com> wrote in message news:f80p2n$2k7a$1@digitalmars.com...
>
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.019.zip
>
> http://www.digitalmars.com/d/changelog.html http://ftp.digitalmars.com/dmd.2.003.zip

You're really making it hard for me not to switch to D2.0.  __traits looks absolutely amazing.  Just remove const-ness and I'll switch ;)


July 23, 2007
"Jarrett Billingsley" <kb3ctd2@yahoo.com> wrote in message news:f817c6$a1o$1@digitalmars.com...

>
> You're really making it hard for me not to switch to D2.0.  __traits looks absolutely amazing.  Just remove const-ness and I'll switch ;)

A question -- many of the descriptions of the __traits functions say that "an array is returned."  But some of the samples look like tuples are being used:

alias typeof(__traits(getVirtualFunctions, D, "foo")) b;
foreach (t; b)
    writefln(typeid(t));

If this really did return an array, the typeof() it would be a single item, not a list, and you wouldn't be able to foreach over it.  So does this return a tuple instead?


July 23, 2007
Robert Fraser wrote:
> May I ask why you put the road there before traits? I know there's a std.traits, but perhaps a different keyword entirely or just a single underscore might be more appropriate...? It looks a bit like a compiler-specific extension to me...

I was thinking they should be buried inside of templates.
July 23, 2007
Kirk McDonald wrote:
> In the spec for the new ForeachRangeStatement, it says:
> 
> "If Foreach is foreach, then the variable is set to LwrExpression, then incremented at the end of each iteration."
> 
> What does "incremented" mean, exactly? If have a class or struct that defines opAddAssign, would it call foo.opAddAssign(1) (as ++foo does)? Similarly, would the foreach_reverse form call foo.opSubAssign(1)?

Right now, it doesn't work with structs/classes, but when it does, it'll be as you wrote.
July 23, 2007
Kirk McDonald wrote:
> Well, this __traits stuff is certainly going to give me something to think about. One note: the lexical page doesn't seem to list it as a keyword.
> 
> How many times have I rewritten Pyd? Three? Well, no matter. This should make things interesting again.
> 

Hey, you asked for it <g>.
« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10 11