in reply to Re: A "harmless" alternative to 'map{}'?
in thread A "harmless" alternative to 'map{}'?

The prototype is used to guarantee that the map acts on lvalues.

No. Prototypes cannot provide any guarantee.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

  • Comment on Re: Re: A "harmless" alternative to 'map{}'?

Replies are listed 'Best First'.
Re(3): A "harmless" alternative to 'map{}'?
by Arien (Pilgrim) on Sep 09, 2002 at 07:11 UTC
    Prototypes cannot provide any guarantee.

    The \@ prototype guarantees barfing if the argument doesn't start with an @, though. And seeing that arrays tend to be lvalues...

    Am I missing anything?

    — Arien

      Prototypes can be circumvented using a & and are completely disregarded for object method calls.

      Makeshifts last the longest.

        Good point... but if you stick your arm in a blender and turn it on, you shouldn't be suprised at the results.

        -Lee

        "To be civilized is to deny one's nature."