[fpc-devel] Need patch for bugs : 0011503 / 0009472
Marco van de Voort
marcov at stack.nl
Thu Jun 19 15:31:32 CEST 2008
> Page 244
> Item 3 describes the lifespan of a temporary object in expression (rvalue
> life span):
Ah, but this is a compiler generated object as result value. I'm still
surprised btw that they omit this possible optimization (e.g. destruction
with the frame), but that is probably related with the need to have the
compiler always honor nested { } blocks.
Anyway, that is something else then a explicitely declared interface
reference as we have here, so one needs a different example.
What comes close to an interface in behaviour in C++, smart pointers?
More information about the fpc-devel
mailing list