Properties set/get huge speed difference?

Josh Stern josh_usenet_xx at
Mon Oct 9 18:53:22 PDT 2006

On Mon, 09 Oct 2006 16:22:13 -0700, Sean Kelly wrote:

> Josh Stern wrote:
>> On Mon, 09 Oct 2006 12:20:36 -0700, Sean Kelly wrote:

>> I had all the same thoughts.  For all these reasons, wouldn't it be a good
>> idea to add "final" methods to the language to give the developer the
>> necessary tool to optimize this intelligently if they need it?
> Hrm... perhaps I'm misunderstanding, but don't they already exist?
>      class C {
>          final void doSomething() {}
>      }
> 'final' guarantees that C.doSomething above will not have a vtbl entry.

Excellent! I knew it *should* be there, but I got thrown off by the docs
when it isn't mentioned on the "class" page and the first paragraph on the
"function" page says that all member functions are virtual because the
compiler can figure out if they really need to be (though we just
discussed why that isn't true).

More information about the Digitalmars-d-learn mailing list