Darren New wrote:
> Christopher Smith wrote:
>> Again, that's not how a bounds checking iterator or null checking smart
>> pointer template would be shared though, because you can't instantiate
>> types from a .o.
> 
> Um, well, in many languages you can, but OK. :-)

Other languages don't have an equivalent to C++ templates. C#'s generics
come the closest, and they need special runtime support to make it all
work, and the way they make it work by design means having the optimizer
right their in the runtime. You can in theory do this using the "export"
keyword in C++, and you're welcome to lookup the history of "export" on
the web. There are lots of reasons people don't use it. ;-)

--Chris

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to