www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D 2.00 official spec

reply Justin Johansson <procode adam-dot-com.au> writes:
Having trolled all over DM site in search for an official D 2.0 spec similar to
that as exists for D 1.0 (spec_DMD_1.00.pdf), I seem to be out of luck.

Does such a document exist and would someone please point me to it?

Thanks for all help.
Sep 06 2009
next sibling parent reply Jeremie Pelletier <jeremiep gmail.com> writes:
Justin Johansson Wrote:

 Having trolled all over DM site in search for an official D 2.0 spec similar
to that as exists for D 1.0 (spec_DMD_1.00.pdf), I seem to be out of luck.
 
 Does such a document exist and would someone please point me to it?
 
 Thanks for all help.
 

D2 is still in development, therefore there is no spec yet.
Sep 06 2009
next sibling parent reply Justin Johansson <procode adam-dot-com.au> writes:
 D2 is still in development, therefore there is no spec yet.

Thanks for answer Jeremie. Understood .. admittedly the D2 compiler download does say alpha. Is there any hint of a draft though or is it a fast moving target? Either way what's the best way to track where it's at?
Sep 07 2009
next sibling parent reply Robin KAY <komadori gekkou.co.uk> writes:
Justin Johansson wrote:
 D2 is still in development, therefore there is no spec yet.

Thanks for answer Jeremie. Understood .. admittedly the D2 compiler download does say alpha. Is there any hint of a draft though or is it a fast moving target? Either way what's the best way to track where it's at?

The current specifications for D1 and D2 are on the Digital Mars web-site. Use the side-bar to view the different sections. http://www.digitalmars.com/d/1.0/lex.html http://www.digitalmars.com/d/2.0/lex.html The D1 specification is also subject to change as (slowly) more detail is added and ambiguities are resolved. -- Robin KAY
Sep 07 2009
parent Justin Johansson <procode adam-dot-com.au> writes:
Robin KAY Wrote:

 The current specifications for D1 and D2 are on the Digital Mars
 web-site. Use the side-bar to view the different sections.
 
 http://www.digitalmars.com/d/1.0/lex.html
 
 http://www.digitalmars.com/d/2.0/lex.html
 
 The D1 specification is also subject to change as (slowly) more detail
 is added and ambiguities are resolved.

Thanks .. missed the detail down the sidebar .. must have been my blurry vision due to staring at Java for too long .. was thinking that getting into D might be some relief for sore eyes .. read the 1.0 PDF spec last week and today went looking (with a measure of excitement) for the 2.0 spec in PDF format to read off-screen. Now is this blurry vision to blame or a typo at line 23 into the first example this page? http://www.digitalmars.com/d/2.0/index.html // Improved typesafe printf writeln(cl.argnum, cl.suffix, " arg: ", cl.argv); // Automatic or explicit memory management delete cl; } writeln should be writefln ? Ditto on D1.0 intro page http://www.digitalmars.com/d/1.0/index.html As a newcomer, I didn't expect the compiler to bitch at sample code copied and pasted from the première D example page :-( ./hello.d(23): Error: undefined identifier writeln ./hello.d(23): Error: function expected before (), not writeln of type int Anyway, if it's not too late, me thinks I'd like to join the party. You folks sound welcoming enough. :-) -- Justin Johansson
Sep 07 2009
prev sibling parent Nick B <nick.barbalich gmail.com> writes:
Justin Johansson wrote:
 D2 is still in development, therefore there is no spec yet.

Thanks for answer Jeremie. Understood .. admittedly the D2 compiler download does say alpha. Is there any hint of a draft though or is it a fast moving target? Either way what's the best way to track where it's at?

Justin You will then need to select a framework to work with. You can pick either Phobos or Tango. I suggest you read (including books) as much as possible before you make your choice. Nick B
Sep 07 2009
prev sibling parent Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Mon, Sep 7, 2009 at 8:12 AM, Justin Johansson<procode adam-dot-com.au> w=
rote:

 Now is this blurry vision to blame or a typo at line 23 into the first ex=

 http://www.digitalmars.com/d/2.0/index.html

 =A0 =A0 =A0 =A0// Improved typesafe printf
 =A0 =A0 =A0 =A0writeln(cl.argnum, cl.suffix, " arg: ", cl.argv);
 =A0 =A0 =A0 =A0// Automatic or explicit memory management
 =A0 =A0 =A0 =A0delete cl;
 =A0 =A0}

 writeln should be writefln ?

No, in Phobos 2 there's a function called writeln as well. It's like writefln but doesn't do formatting.
 Ditto on D1.0 intro page
 http://www.digitalmars.com/d/1.0/index.html

Now that *is* a legitimate mistake. There's no writeln in Phobos 1, and that should be writefln.
Sep 07 2009
prev sibling parent Jesse Phillips <jessekphillips gmail.com> writes:
On Sun, 06 Sep 2009 23:36:13 -0400, Justin Johansson wrote:

 Having trolled all over DM site in search for an official D 2.0 spec
 similar to that as exists for D 1.0 (spec_DMD_1.00.pdf), I seem to be
 out of luck.
 
 Does such a document exist and would someone please point me to it?
 
 Thanks for all help.

The PDF is actually community provided so in a way it is actually less official than what is found on the website. It hasn't been updated to the latest release, for D1 this isn't a problem since the language isn't changing, but D2 would be troublesome if it existed. Enjoy the language.
Sep 07 2009