struct inheritance need?

Weed resume755 at mail.ru
Thu Dec 25 03:30:27 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, so it doesn't affect source code in any way, it just can't. In C++ you can't tell whether the code executes at compile time, as as of standard, it's completely up to the compiler to optimize code generation.

Yeah, right.

I propose that it be expanded to optimize the static arrays and classes.


More information about the Digitalmars-d-learn mailing list