Re: How to let D's one module contains lots of classes.

2014-11-09 Thread AlanThinker via Digitalmars-d
On Sunday, 9 November 2014 at 12:21:28 UTC, tcak wrote: On Sunday, 9 November 2014 at 11:30:22 UTC, AlanThinker wrote: Yes, you are right. Package can do it. Thanks all of you! Yes, package can do it, thou this adds burden to maintain packages this time. Weirdness of this design is seen in d

Re: convert static arrays to dynamic arrays and return, have wrong data.

2014-11-09 Thread AlanThinker via Digitalmars-d
BTW, adding .dup resolve error: BTW, adding .dup resolve error, but i mean it easy to make mistake because no compile error when implicit convert.

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread AlanThinker via Digitalmars-d
Yes, you are right. Package can do it. Thanks all of you!

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread AlanThinker via Digitalmars-d
On Sunday, 9 November 2014 at 10:02:41 UTC, bearophile wrote: AlanThinker: If there all classes in one file, the file will be to big. The file will also probably contain several free functions, and not just classes. Bye, bearophile Is it possible to let one module contains lots of classe

Re: convert static arrays to dynamic arrays and return, have wrong data.

2014-11-09 Thread AlanThinker via Digitalmars-d
Is it possible to raise error when implicit convert static arrays to dynamic arrays? Because there are really different. On Sunday, 9 November 2014 at 10:04:16 UTC, bearophile wrote: AlanThinker: It seems that, D's array is strange, It can implicit convert static arrays to dynamic arrays no

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread AlanThinker via Digitalmars-d
I notice that lots of GUI library will create a module which have the same name as the class to hold a class. such as: /// module tkd.widget.button; class Button /// If one module can have different classes in different files. It can change to: /// module tkd.widget; class Button /// If someone

How to let D's one module contains lots of classes.

2014-11-09 Thread AlanThinker via Digitalmars-d
In C#, one namespace can contains lots of classes. How to let D's one module contains lots of classes. It seems that in D one module must in a single file. If there all classes in one file, the file will be to big.

Re: X86 COFF format static libraries is very important for d, how to use them? -ms32coff?

2014-11-09 Thread AlanThinker via Digitalmars-d
Is it possible in new verson, offer 32 bit COFF druntime and phobos lib? Because it's hard to me to compile for myself. On Sunday, 9 November 2014 at 05:21:06 UTC, Joakim wrote: On Sunday, 9 November 2014 at 03:44:00 UTC, FrankLike wrote: X86 COFF format static libraries is very important for

convert static arrays to dynamic arrays and return, have wrong data.

2014-11-09 Thread AlanThinker via Digitalmars-d
It seems that, D's array is strange, It can implicit convert static arrays to dynamic arrays no error and no warning. But when I return the converted arrays out the function. Outside function will get some wrong data. It may very easily cause some bug because no error when convert static array