Properties set/get huge speed difference?

Lars Ivar Igesund larsivar at igesund.net
Mon Oct 9 11:59:16 PDT 2006


%u wrote:

>> although the program compiled with dmd is slower (0.20s) than gdc, this
>> doesn't concern me now. "final" works in dmd, both gets/sets have the
>> same speed.
> 
> 
> I thought D was supposed to automatically make all methods final that
> aren't changed by a subclass?

How could the compiler know that? The class might be put into a library, and
subclassed in an application (a very common use case) or other library.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the Digitalmars-d-learn mailing list