Re: struct inheritance need?

2008-12-24 Thread Weed
Kagamin пишет: Weed Wrote: too cannot be initialized in a compile time. Sure it can't. Does it cause that big problems? Sometimes it is the only way to avoid a large number of global ad In D module variables can be protected by access modifiers and become module-local. Module full of mathem

Re: struct inheritance need?

2008-12-24 Thread Kagamin
Weed Wrote: > too cannot be initialized in a compile time. > >>> Sure it can't. Does it cause that big problems? > >> Sometimes it is the only way to avoid a large number of global ad > > > > In D module variables can be protected by access modifiers and become > > module-local. > > Module

Re: struct inheritance need?

2008-12-24 Thread Weed
Weed пишет: Kagamin пишет: Weed Wrote: I'd prefer run-time checks, though templates can be used for sure. This problem would help solve the availability of inheritance for structs or compile-time creation of class instances. And I see no problem. Absence of compile-time object creation does

Re: struct inheritance need?

2008-12-24 Thread Weed
Kagamin пишет: Weed Wrote: It is not necessary to suggest to wrap up "pixel" in a class - then it too cannot be initialized in a compile time. Sure it can't. Does it cause that big problems? Sometimes it is the only way to avoid a large number of global ad In D module variables can be prote

Re: struct inheritance need?

2008-12-24 Thread Kagamin
Weed Wrote: > >> It is not necessary to suggest to wrap up "pixel" in a class - then it > >> too cannot be initialized in a compile time. > > > > Sure it can't. Does it cause that big problems? > > Sometimes it is the only way to avoid a large number of global ad In D module variables can be p