struct inheritance need?

Weed resume755 at mail.ru
Thu Dec 25 23:42:07 PST 2008


Kagamin пишет:
> Weed Wrote:
> 
>> If you do not want to initialize repeatedly matrix inside the sub, which 
>> often cause each other, must be static matrices or declared as global 
>> (in relation to these procedures). You agree with that?
> 
> What's problem? If you want static or global variables, you have them in D.
> 
>> Do you propose through mixin divide the code into parts?
> 
> Well, why mixin? Just create different modules and place code according to its purpose to these modules.
> 
>> You do not think that it is better to add to language that would give 
>> 100% to use the opportunity of calculations at compile time. This 
>> greatly simplify the code and perfectly and logically fit into the language.
> 
> Compile-time evaluation is just an optimization technique, which may or may not be applied without any change to source code,

Incidentally, this is incorrect.

In the event that it is impossible to calculate the static expression
compiler immediately gives an error rather than moves calculation to
run-time.


More information about the Digitalmars-d-learn mailing list