Re: Learning D2 from nearly zero

2009-04-30 Thread Don
Grzegorz Adam Hankiewicz wrote: Don escribió: The key piece of information which I think you're missing is that D2 just underwent an earthquake change in the last release. D2.029 is alpha 1 of Phobos 2.0. It's a major break from D2.028, and has lots of ground-breaking stuff. The major concepts

Re: Learning D2 from nearly zero

2009-04-30 Thread Saaa
> After toying with D1 some years ago I've returned to see D2 and ported it > a program I had written in D1. 99% of the time was figuring out why my > chars[] suddenly didn't want to work/interface correctly with C library > calls. > > After going through some documentation on the web I manage

Re: D-styled data file

2009-04-30 Thread Saaa
> If your licensing requirements allow Commercial use should allow this I think. >, you can probably just extract tango.text.json and use that -- it >shouldn't have significant requirements on the rest of tango. These are the dependencies: module tango.text.json.Json; private import tango.core

Re: Learning D2 from nearly zero

2009-04-30 Thread Grzegorz Adam Hankiewicz
Don escribió: The key piece of information which I think you're missing is that D2 just underwent an earthquake change in the last release. D2.029 is alpha 1 of Phobos 2.0. It's a major break from D2.028, and has lots of ground-breaking stuff. The major concepts are in, but there are many bugs

Re: Learning D2 from nearly zero

2009-04-30 Thread Don
Grzegorz Adam Hankiewicz wrote: After toying with D1 some years ago I've returned to see D2 and ported it a program I had written in D1. 99% of the time was figuring out why my chars[] suddenly didn't want to work/interface correctly with C library calls. After going through some documentatio

Re: D-styled data file

2009-04-30 Thread Saaa
Can somebody help me out here? > This is what I came up with to save a multidimentional array in JSON. > It compiles . . but does not work : ) > > > int[100][100][10] bigArray; > > //set the array to something other then zero > foreach( int[100][100] arr; bigArray) > foreach(int index, int[100]

Learning D2 from nearly zero

2009-04-30 Thread Grzegorz Adam Hankiewicz
After toying with D1 some years ago I've returned to see D2 and ported it a program I had written in D1. 99% of the time was figuring out why my chars[] suddenly didn't want to work/interface correctly with C library calls. After going through some documentation on the web I managed to make it

Re: Get the name of a function and the parameters?

2009-04-30 Thread Don
Georg Wrede wrote: Jarrett Billingsley wrote: On Wed, Apr 29, 2009 at 2:52 AM, Georg Wrede wrote: Jarrett Billingsley wrote: Don't you love it? "Most C++ template features are discovered." So are D's. Well, one could say that this is the very definition of a well working metaprogramming

Re: enum in template

2009-04-30 Thread bearophile
Daniel Keep: > enum defines a "manifest constant." In other words, it defines a > constant that does NOT consume any storage anywhere in the program: it > exists only at compile-time. For the original poster: this is true in D2+ only, not in D1. Bye, bearophile