Re: Getting environment variables?

2008-11-23 Thread novice2
> Under what setups can the drive letter be a non-ASCII character? any non-english windows have folders, usernames, etc with non-ascii chars, therefore this names presents in environment, registry, file API etc. > wchar[] wpath; > wpath.length = GetEnvironmentVariableW("HOMEPATH", null, 0

Re: dsss manual

2008-11-23 Thread Jesse Phillips
On Mon, 24 Nov 2008 00:41:54 -0500, Morusaka wrote: > Jesse Phillips Wrote: >> Just to make sure this is a DSSS issue, it does compile with dmd >> correct? The ld error would be helpful. It could be that >> $LD_LIBRARY_PATH doesn't know where dsss/lib is. > > Now the error is gone: > > module ma

Re: gc heap

2008-11-23 Thread Jarrett Billingsley
On Mon, Nov 24, 2008 at 12:51 AM, Sam S E <[EMAIL PROTECTED]> wrote: > Better in what way? Do you like my syntax or do you have a better one? Oh, I was agreeing with you, as well as implying that struct literals in general could be improved.

Re: gc heap

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sun, Nov 23, 2008 at 10:59 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > See http://s3.amazonaws.com/dconf2007/WalterAndrei.pdf. > > There are some amazing feature listed there. I can't think of anything else > > I'd like to see implemented (except for automatic type

Re: dsss manual

2008-11-23 Thread Morusaka
Jesse Phillips Wrote: > Just to make sure this is a DSSS issue, it does compile with dmd correct? > The ld error would be helpful. It could be that $LD_LIBRARY_PATH doesn't > know where dsss/lib is. Now the error is gone: module main;// <--- comment this and you get a ld error import st

Re: gc heap

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 10:59 PM, Sam S E <[EMAIL PROTECTED]> wrote: > See http://s3.amazonaws.com/dconf2007/WalterAndrei.pdf. > There are some amazing feature listed there. I can't think of anything else > I'd like to see implemented (except for automatic type inference of > substructs in struct

Re: gc heap

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sun, Nov 23, 2008 at 6:48 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > Jarrett Billingsley Wrote: > > > >> On Sun, Nov 23, 2008 at 5:35 PM, Sam S E <[EMAIL PROTECTED]> wrote: > >> > > >> > Thank you; thanks to you I now have a basic understanding of all the > >> > fe

Re: which version of D for beginers?

2008-11-23 Thread Christopher Wright
Kagamin wrote: Hoenir Wrote: Lutger schrieb: There are a few changes that need to be done when porting code from D1 to D2. It may be helpful to find out what those are at an early stage and program your applications with these in mind. That will help when D2 is more stabilized and you want to

Re: dsss manual

2008-11-23 Thread Jesse Phillips
On Sun, 23 Nov 2008 17:34:13 -0500, Morusaka wrote: > Morusaka Wrote: >> this is what I did: >> >> $ mkdir ws >> $ cd ws >> $ wget >> http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86- gnuWlinux.tar.bz2 >> $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 $ export >> PATH="~/ws/

Re: gc heap

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 6:48 PM, Sam S E <[EMAIL PROTECTED]> wrote: > Jarrett Billingsley Wrote: > >> On Sun, Nov 23, 2008 at 5:35 PM, Sam S E <[EMAIL PROTECTED]> wrote: >> > >> > Thank you; thanks to you I now have a basic understanding of all the >> > features of D. Now if only Walter could impl

Re: gc heap

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sun, Nov 23, 2008 at 5:35 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > > > Thank you; thanks to you I now have a basic understanding of all the > > features of D. Now if only Walter could implement all of them :) > > --Sam > > > > What's that supposed to mean? Ther

Re: gc heap

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 5:35 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > Thank you; thanks to you I now have a basic understanding of all the features > of D. Now if only Walter could implement all of them :) > --Sam > What's that supposed to mean?

Re: dsss manual

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 5:34 PM, Morusaka <[EMAIL PROTECTED]> wrote: > Morusaka Wrote: >> this is what I did: >> >> $ mkdir ws >> $ cd ws >> $ wget >> http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-gnuWlinux.tar.bz2 >> $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 >> $ exp

Re: gc heap

2008-11-23 Thread Sam S E
Jarrett Billingsley Wrote: > On Sun, Nov 23, 2008 at 5:02 PM, Sam S E <[EMAIL PROTECTED]> wrote: > > What is allocated in the gc heap? Just classes? Dynamic/associative arrays? > > Structs? Only things allocated with new? Do built-in types and structs get > > deallocated at the end of scope like

Re: dsss manual

2008-11-23 Thread Morusaka
Morusaka Wrote: > this is what I did: > > $ mkdir ws > $ cd ws > $ wget > http://svn.dsource.org/projects/dsss/downloads/0.78/dsss-0.78-x86-gnuWlinux.tar.bz2 > $ tar xvvf tar xvvf dsss-0.78-x86-gnuWlinux.tar.bz2 > $ export PATH="~/ws/dsss-0.78-x86-gnuWlinux/bin:$PATH" RGGGHH

Re: dsss manual

2008-11-23 Thread Morusaka
Jarrett Billingsley Wrote: > I don't think this actually has anything to do with the --prefix > argument. The error says that DSSS can't figure out where it lives. > > How did you install DSSS? Where is it located, and how did you add it > to your path? Hi Jarrett, this is what I did: $ mkdir

Re: gc heap

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 5:02 PM, Sam S E <[EMAIL PROTECTED]> wrote: > What is allocated in the gc heap? Just classes? Dynamic/associative arrays? > Structs? Only things allocated with new? Do built-in types and structs get > deallocated at the end of scope like in C? > Everything that is a refer

Re: dsss manual

2008-11-23 Thread Jarrett Billingsley
On Sun, Nov 23, 2008 at 4:29 PM, Morusaka <[EMAIL PROTECTED]> wrote: > Thank you Jesse for your reply. > > I'm sorry, I followed your instructions, but I didn't manage to make it work > properly. > > None of these worked: > > $ dsss --prefix= build > Unrecognized argument: --prefix=-/build > (wher

gc heap

2008-11-23 Thread Sam S E
What is allocated in the gc heap? Just classes? Dynamic/associative arrays? Structs? Only things allocated with new? Do built-in types and structs get deallocated at the end of scope like in C?

Re: dsss manual

2008-11-23 Thread Morusaka
Jesse Phillips Wrote: > # ./dsss --prefix=/usr/local install I forgot to say that I also tryied: $ ./dsss install --prefix=/home/luca/workspace/ from the directory where dsss is located, but all I got was: No config file found and no targets explicitly specified. Argh!!! Thx, Luca.

Re: dsss manual

2008-11-23 Thread Morusaka
Jesse Phillips Wrote: > You need to give dsss a place to install your program. > > $ dsss --prefix= build > > I would suggest installing dsss to the system, do this from within the > where you have dsss. Then you won't have to include prefix every time > (though doing the above may only need t

Re: Getting environment variables?

2008-11-23 Thread Lars Ivar Igesund
torhu wrote: > Christopher Wright wrote: >> Hey all, >> >> How do I get environment variables in a D program? I specifically want >> the path to a user's home folder. >> >> Ta muchly. > > I think the 'correct' way on Windows is to use SHGetSpecialFolderPathA. > > Something like this: > > char

Re: Getting environment variables?

2008-11-23 Thread torhu
Christopher Wright wrote: Hey all, How do I get environment variables in a D program? I specifically want the path to a user's home folder. Ta muchly. I think the 'correct' way on Windows is to use SHGetSpecialFolderPathA. Something like this: char[MAX_PATH] buf; SHGetSpecialFolderPathA(n

Re: dsss manual

2008-11-23 Thread Jesse Phillips
On Sun, 23 Nov 2008 04:40:04 -0500, Morusaka wrote: > Bill Baxter Wrote: > >> It's sort of split up, but this is the most useful doc in my opinion. >> http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers >> >> --bb >> >> > Thank you Bill for your fastestthanlight reply!! I think

Re: which version of D for beginers?

2008-11-23 Thread Kagamin
Hoenir Wrote: > Lutger schrieb: > > There are a few changes that need to be done when porting code from D1 to > > D2. It may be helpful to find out what those are at an early stage and > > program your applications with these in mind. That will help when D2 is > > more stabilized and you want to s

Re: Getting environment variables?

2008-11-23 Thread Stewart Gordon
"novice2" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] homeDrive = toString(getenv("HOMEDRIVE")).dup; homePath = toString(getenv("HOMEPATH")).dup; don't forget, that D char[] is utf8 and windows char* is 8-bit chars, not utf8. so you should import std.windows.charset and

Re: Getting environment variables?

2008-11-23 Thread novice2
> homeDrive = toString(getenv("HOMEDRIVE")).dup; > homePath = toString(getenv("HOMEPATH")).dup; don't forget, that D char[] is utf8 and windows char* is 8-bit chars, not utf8. so you should import std.windows.charset and use toMBSz() as D->WindowsAPI and fromMBSz as WindowsAPI->D string c

Re: dsss manual

2008-11-23 Thread Morusaka
Bill Baxter Wrote: > It's sort of split up, but this is the most useful doc in my opinion. > http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers > > --bb > Thank you Bill for your fastestthanlight reply!! I think I've some sort of installation issue, but that document doesn't cov

Re: dsss manual

2008-11-23 Thread Bill Baxter
It's sort of split up, but this is the most useful doc in my opinion. http://www.dsource.org/projects/dsss/wiki/DSSSForSoftwareEngineers --bb On Sun, Nov 23, 2008 at 6:09 PM, Morusaka <[EMAIL PROTECTED]> wrote: > Hi, > > I know this may sound as a rather stupid question, but where is located DSSS

dsss manual

2008-11-23 Thread Morusaka
Hi, I know this may sound as a rather stupid question, but where is located DSSS manual? I can't find it! Of course I looked for it here: http://www.dsource.org/projects/dsss. Thank you, Luca.