void main returning int - why compiles?

2010-12-31 Thread Daren Scot Wilson
I'm wondering why the following compiles. I'm using LDC. Perhaps it's a bug, or there's some subtlety about D. I have deliberately, out of a combination of idleness and desire for mischief, have main() declared as returning void, but with a return statement giving an integer. If the firs

Loop through all modules and module members?

2010-12-31 Thread %u
Hi, I would like to perform compile-time reflection on a module (such as enumerating all the classes inside the module) and/or on all modules in the code -- are either of these possible? And if so, how? Thank you!

Re: phobos std.container example

2010-12-31 Thread Steven Schveighoffer
This might be not what you want, but there is a more complete alternative to std.container which works with D2: http://www.dsource.org/projects/dcollections You may find more familiarity there. -Steve

Re: Examples using Tango

2010-12-31 Thread bioinfornatics
here i have written some example in d programming D1/tango: http://blog.fedora-fr.org/bioinfornatics/

Re: phobos std.container example

2010-12-31 Thread novice2
thank you Ali and bearophile!

Re: phobos std.container example

2010-12-31 Thread Ali Çehreli
novice2 wrote: > Woud anybody please show phobos std.container usage sample? > I need list/array of objects/structures. SList is a singly-linked list, and Array is an array. > Every item have list/array of another objects/structures. > I need possibility: > 1) to construct such lists/arrays; T