March 22, 2004 Re: Making optional arguments | ||||
---|---|---|---|---|
| ||||
Posted in reply to C | C schrieb:
>> Plus, it seems to me like it could lead to smaller executables since the code for the forwarding function would be gone... or is that optimized out by DMD?
>
>
> Nope :S ( obj2asm ).
Tried in release mode with function-level linkage? Ok, it won't work for class member functions anyway.
Anyway, i think Walter said that this is really intended to be eliminated, but i think it's not going to be fully possible until someone writes an efficient eliminator like the one in Sather.
I recall that Walter was against default arguments because they can be problematic in derived classes and so on.
-eye
|
Copyright © 1999-2021 by the D Language Foundation