Safer casts
Janice Caron
caron800 at googlemail.com
Sun May 11 17:43:07 PDT 2008
On 12/05/2008, Yigal Chripun <yigal100 at gmail.com> wrote:
> I don't know about any plans to change the dm linker.
You do now. :-)
The following is an exact word-for-word quote, posted 23 Mar by Walter Bright:
"Templatizing is the language solution. I know about the bloat
problem, but that is really an implementation issue. I know the linker
doesn't do it now, but identical blocks of generated code with
different names should be merged."
> what i mean was doing something like this:
> <snip>
And that's a perfectly reasonable strategy, but it only works for
pointers to structs. (In D, it won't work for class references).
Structs, by contrast, should probably be written into a collection by
value, not by reference. In short, it's a C++-specific strategy.
More information about the Digitalmars-d
mailing list