On Fri, Apr 23, 2004 at 03:13:09PM -0400, Austin Hastings wrote:
: Can I declare a const reference and have it optimized away?
: 
:   class Queue {
:     has @:elements;
:     has $:array_delegate
:       handles <push pop int>
:       = \@:elements
:       is const;
:   }

I suppose, depending on what you mean by "optimize".  I would guess this
is one of those potential optimizations that nobody ever gets the tuits
to do.

: So what are the ways to fail?
: 
: -> Subtype incompatibility, as above
: -> Invocation signature: Does the @:handlers list become a wierd sort of
: tunable multimethod dispatch?
: -> C<fail> keyword?
: -> C<next METHOD> obviously
: -> Others?

Ain't that enough?  :-)

Larry

Reply via email to