Re: D-styled data file

2009-04-27 Thread Saaa
Maybe add another keyword to force a full index parse :)

D-styled data file

2009-04-27 Thread Saaa
I would like to be able to read and write variables which are human readable. It should be as fast as possible and easy to use. Something like this: -- file.dat char[] header = `test header`; int[6] numbers = [ 1, 2, 3, 4, 5, 6]; // not sure about the array layout yet // the following layout m

Re: pyd still usable?

2009-04-27 Thread Jarrett Billingsley
On Mon, Apr 27, 2009 at 11:18 AM, mpt wrote: > Which versions of tango+gdc+pyd do I need to get stuff to work? I'd like > to use D+Python on 32 or 64 bit Linux. I've tried a number of tango/gdc > bundles and pyd rc/trunk, but there are always compiler and linker errors. > > How do you build Tango

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

2009-04-27 Thread Jarrett Billingsley
On Mon, Apr 27, 2009 at 6:56 AM, Jacob Carlborg wrote: > I found that this: > > void foo (int x, int y) > { > } > > void main () > { >    pragma(msg, typeof(&foo).stringof); > } > > gave this result: > > void function(int x, int y) > > So now I just have to get the names out of there. Interestin

pyd still usable?

2009-04-27 Thread mpt
Which versions of tango+gdc+pyd do I need to get stuff to work? I'd like to use D+Python on 32 or 64 bit Linux. I've tried a number of tango/gdc bundles and pyd rc/trunk, but there are always compiler and linker errors. How do you build Tango to a library that can be linked to a dynamic library, s

Re: How to check for internet connectivity and download file?

2009-04-27 Thread Tyro[a.c.edwards]
On 4/27/2009 5:14 PM, Unknown W. Brackets wrote: If you want both HTTP and FTP, it's definitely worth using a library for it. There are a lot of options, but almost all of them are out of date I suppose for 2.x... I've always hated curl, but you might look at how hard it is to get/make d headers

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

2009-04-27 Thread Jacob Carlborg
Daniel Keep wrote: Daniel Keep wrote: Jacob Carlborg wrote: Is it possible to get the name of a function and the names of the function parameters? I don't believe so, no. -- Daniel I should perhaps qualify, in light of Jarrett's response, that I thought you meant from inside the function

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

2009-04-27 Thread Jacob Carlborg
Jarrett Billingsley wrote: On Sun, Apr 26, 2009 at 12:23 PM, Jacob Carlborg wrote: Is it possible to get the name of a function and the names of the function parameters? Name of a function? Yes. public template NameOfFunc(alias f) { version(LDC) const char[] NameOfFu

Re: How to check for internet connectivity and download file?

2009-04-27 Thread BLS
Tyro[a.c.edwards] wrote: I've used Burton Radons' "urllib" in the past to get download files from the internet, however the library has atrophied and can no longer be used with DMD v2.029 (not how long it's been this way because I haven't tried to compile it since 2006). I'm wondering if someo

Re: How to check for internet connectivity and download file?

2009-04-27 Thread Unknown W. Brackets
If you want both HTTP and FTP, it's definitely worth using a library for it. There are a lot of options, but almost all of them are out of date I suppose for 2.x... I've always hated curl, but you might look at how hard it is to get/make d headers for it. This might work fine for you. HTTP