Re: how does range.put work

2009-08-06 Thread Daniel Keep
O.K. wrote: > Hello, > could someone plz clearify what the exact semantics of "put" > are ? > Put works with an appender, but gives me a runtime exception > when using an array. > > Best regards, > Oliver The source code for the standard library comes with the compiler. If you look in std\arra

Re: noob question

2009-08-06 Thread Sergey Gromov
Thu, 06 Aug 2009 10:56:33 -0400, lllTattoolll wrote: > hi Lars and thx for help. I fix a little the first problem, now I paste a > verion in english whit coment because i´m lost here. > the example is the same only this is in english for your compresion of my > problem. > >

Re: Shared Object with DMD v2.031

2009-08-06 Thread teo
On Thu, 06 Aug 2009 04:24:35 +0400, Sergey Gromov wrote: > Wed, 5 Aug 2009 20:46:53 + (UTC), teo wrote: > >> On Tue, 04 Aug 2009 18:41:50 +0400, Sergey Gromov wrote: >> >>> Sun, 2 Aug 2009 11:18:24 + (UTC), teo wrote: >>> On Sun, 02 Aug 2009 02:18:28 +0400, Sergey Gromov wrote: >>>

Linking Tango + QtD under Ubuntu (with Rebuild)

2009-08-06 Thread Michael Mittner
I'm trying to evaluate QtD. First step is to link something against Tango and Qt, but unfortunately I can't get it to work: rebuild main.d -debug -full -oqobj/ -I~/coding -llqtdcore -llqtdgui - llQtCore -llQtGui I have Tango installed via apt-get (and the Tango repository), as well as libqt4-de

Re: noob question

2009-08-06 Thread BCS
Reply to llltattoolll, writefln ("Your age is %d? \t YES \t NO", _age ); /* here is my second problem, can´t into the response and program*/ _response = readln(); /* show me else line always */ // if all else fails, what are you getting writef(">>%s<<\n", cast(ubyte[])chomp(_response));

Re: noob question

2009-08-06 Thread lllTattoolll
hi Lars and thx for help. I fix a little the first problem, now I paste a verion in english whit coment because i´m lost here. the example is the same only this is in english for your compresion of my problem. -- code --

how does range.put work

2009-08-06 Thread O.K.
Hello, could someone plz clearify what the exact semantics of "put" are ? Put works with an appender, but gives me a runtime exception when using an array. Best regards, Oliver

Re: noob question

2009-08-06 Thread Lars T. Kyllingstad
Lars T. Kyllingstad wrote: llltattoolll wrote: hi im noob here and try learn D language, i try make this example but when run have 2 problems. 1) when i show name and lastname show me in two lines and i wanna make in the same line. 2) can´t validate option si ( yes ) or no ( no ) and always s

Re: noob question

2009-08-06 Thread Lars T. Kyllingstad
llltattoolll wrote: hi im noob here and try learn D language, i try make this example but when run have 2 problems. 1) when i show name and lastname show me in two lines and i wanna make in the same line. 2) can´t validate option si ( yes ) or no ( no ) and always show the else line. what hap

noob question

2009-08-06 Thread llltattoolll
hi im noob here and try learn D language, i try make this example but when run have 2 problems. 1) when i show name and lastname show me in two lines and i wanna make in the same line. 2) can´t validate option si ( yes ) or no ( no ) and always show the else line. what happend? thx ---

Re: At compile time

2009-08-06 Thread Don
Jarrett Billingsley wrote: *On Wed, Aug 5, 2009 at 7:23 AM, Ary Borenszweig wrote: bearophile escribió: Jarrett Billingsley: C++ has static initialization that occurs before main() too. It's just.. hidden.< I see. I have to learn more about C++. Thank you. -- Lars T. Kylling

Re: A floating-point puzzle

2009-08-06 Thread Don
Jarrett Billingsley wrote: On Wed, Aug 5, 2009 at 10:16 PM, Don wrote: Lars T. Kyllingstad wrote: Lars T. Kyllingstad wrote: Here's a puzzle for you floating-point wizards out there. I have to translate the following snippet of FORTRAN code to D: REAL B,Q,T C