Re: dynamic array of strings

2008-12-29 Thread Tim M
On Tue, 30 Dec 2008 17:00:10 +1300, Jarrett Billingsley wrote: On Mon, Dec 29, 2008 at 10:53 PM, Tim M wrote: Where is din.readf? If it is a c function then it won't be able to set up the dynamic array. In std.cstream, din is an instance of std.stream.Stream bound to standard in.

Re: dynamic array of strings

2008-12-29 Thread Jarrett Billingsley
On Mon, Dec 29, 2008 at 10:53 PM, Tim M wrote: > > Where is din.readf? If it is a c function then it won't be able to set up > the dynamic array. In std.cstream, din is an instance of std.stream.Stream bound to standard in.

Re: dynamic array of strings

2008-12-29 Thread Tim M
On Tue, 30 Dec 2008 16:36:24 +1300, Michael P. wrote: import std.stdio; import std.cstream; void main() { char[][] names; char[] currentName; while( true ) { din.readf( "%s", ¤tName ); if( currentName == "stop" ) { break; } else { //what goes here t

Re: dynamic array of strings

2008-12-29 Thread Jarrett Billingsley
On Mon, Dec 29, 2008 at 10:36 PM, Michael P. wrote: > import std.stdio; > import std.cstream; > void main() > { > char[][] names; > char[] currentName; > while( true ) > { >din.readf( "%s", ¤tName ); >if( currentName == "stop" ) >{ > break; >} >else >{ names ~= cur

dynamic array of strings

2008-12-29 Thread Michael P.
import std.stdio; import std.cstream; void main() { char[][] names; char[] currentName; while( true ) { din.readf( "%s", ¤tName ); if( currentName == "stop" ) { break; } else { //what goes here to dynamically allocate memory for the //names array? n

Re: float literals

2008-12-29 Thread BCS
Reply to Ellery, BCS wrote: Reply to Ellery, From the grammar, FloatLiteral: Float Float Suffix Integer ImaginarySuffix Integer FloatSuffix ImaginarySuffix Integer RealSuffix ImaginarySuffix I don't think "Integer" is referring to "IntegerLiteral". In fact, I think it is undefined. Umm..

Re: float literals

2008-12-29 Thread BCS
Reply to Ellery, BCS wrote: Reply to Ellery, From the grammar, FloatLiteral: Float Float Suffix Integer ImaginarySuffix Integer FloatSuffix ImaginarySuffix Integer RealSuffix ImaginarySuffix I don't think "Integer" is referring to "IntegerLiteral". In fact, I think it is undefined. Umm..

Re: trouble with dmd + obj2asm under linux

2008-12-29 Thread Weed
Daniel Keep пишет: > > > Weed wrote: >> [snip] > > If I had to guess, I'd say it's because you compiled without symbols. > Try this: > > $ dmd -g demo.d Has varied nothing. Names of functions and were earlier in a binary file, they are enumerated from above (I have reduced them): publ