Re: How the GC distinguishes code from data

2011-01-06 Thread Pelle
On 01/06/2011 07:31 AM, %u wrote: If you have allocated a large uint[], most likely =C3=ACt will be flagged NO_SCAN, meaning it has no pointers in it, and the GC will ignore it. Ah, but the trouble is, no one said that this array has to be in the GC heap! I could easily have a void[] and a

How does dsource create the multiple projects?

2011-01-06 Thread Sclytrack
How does dsource handle the multiple projects? Is that each projects its own trac environment. Does it use sqlite? I know not a D related question.

to! fails with fixed length char array for dmd 2.051

2011-01-06 Thread stephan
The following code worked fine with dmd 2.050, but fails to compile for dmd 2.051. Any reason for this (other than a bug)? import std.conv; void main() { char[4] t = test; auto s = to!(dstring)(t); } Error message seems to indicate that two templates match, one checking for

Re: Wide characters are not printed properly

2011-01-06 Thread Jun
Thank you. It worked!

uniform()

2011-01-06 Thread Jun
Does anyone knows how can I set the boundary of uniform()? I got an error with uniform([], 0, 10);

Re: uniform()

2011-01-06 Thread Simen kjaeraas
Jun bli...@naver.com wrote: Does anyone knows how can I set the boundary of uniform()? I got an error with uniform([], 0, 10); The documentation seems a bit weird on uniform, yes. The correct way is: uniform![]( 0, 10 ) -- Simen

D2 postgresql interface - Phobos2?

2011-01-06 Thread %fil
Hi, I was wondering if there is a postgresql db (D native) interface available for D2? Also, are there any plans to have a common DB interface in Phobos2? Many thanks, fil

Re: How the GC distinguishes code from data

2011-01-06 Thread Jérôme M. Berger
%u wrote: Hi, There's a question that's been lurking in the back of my mind ever since I learned about D: How does the GC distinguish code from data when determining the objects to collect? (E.g. void[] from uint[], size_t from void*, etc.?) If I have a large uint[], it's practically

Re: D2 postgresql interface - Phobos2?

2011-01-06 Thread Piotr Szturmaj
I was wondering if there is a postgresql db (D native) interface available for D2? Hi, I'm currently writing one for D2 using postgresql's low level protocol directly (instead of using libpq). It supports binary formatting, so no parsing or converting to string/escaping is needed and that

Re: D2 postgresql interface - Phobos2?

2011-01-06 Thread Piotr Szturmaj
I was wondering if there is a postgresql db (D native) interface available for D2? Hi, I'm currently writing one for D2 using postgresql's low level protocol directly (instead of using libpq). It supports binary formatting, so no parsing or converting to string/escaping is needed and that

Re: D2 postgresql interface - Phobos2?

2011-01-06 Thread Mandeep Singh Brar
Me too. Trying to port postgres JDBC driver to D. Already have somewhat working ODBC bridge. (ported libodbc++). Regards Mandeep

D Language info collected and combined into one CHM file.

2011-01-06 Thread david wang
Hi, everyone, I payed attention to D Language for a bit time. And I collected the language info from Digitalmars.com and combined them into one CHM file, maybe it is useful that be referenced when someone is offline. Please view the attached CHM file. Best regards David.

Re: D Language info collected and combined into one CHM file.

2011-01-06 Thread david wang
Sorry, surrely that I've posted the attachment (CHM file), but I can not see it. Does anyone can kindly help me to point out that how to transfer chm file to this BBS? waiting for kindly reply. David.