Larry Wall wrote:
> 
> I expect that we'll get more compile-time benefit from
> 
>     my HASH sub foo {
>         ...
>     }
> 
>     %bar = foo();

Ah, the Return Value Optimization so loved in C++...

For those who haven't seen it before, you can optimize this by passing
in a reference to %bar to foo() and then use that in the function.

Before we pick this syntax, it may be worth studying the various
implications of RVO in C++ - I can advise "Inside the C++ Object Model:
for a discussion...

Hildo

Reply via email to