Two standard libraries?
renoX
renosky at free.fr
Sat Jul 28 07:10:04 PDT 2007
Bill Baxter a écrit :
> Robert Fraser wrote:
>> I stand corrected.
>
> Ok people come on. Doesn't he have something of a point? Doesn't byte
> compilation at least remove the names of local variables that clearly
> are not and therefor cannot ever be referred to by name?
Well, ideally if there is a function which needs to the variable name at
runtime, then the compiler *should* keep the name.. Otherwise, yes the
compiler can drop the name to save memory.
Using index to refer to variable in a list strikes me as a very bad idea
leading to a lot of potential mistake (think about the maintenance!), so
a way to use variables name (at least for constant string at compilation
time) should be provided.
I have made a 'format string' templated function which worked this way,
I posted it some time ago..
renoX
>
> --bb
More information about the Digitalmars-d
mailing list