Re: Data::Swap and ponie
[email protected] (Dan Sugalski) Mon, 11 Oct 2004 12:26:48 -0400
| Newsgroups | perl.ponie.dev |
|---|---|
| Message-ID | <a06200404bd90649bbeab@[172.24.18.155]> |
At 6:20 PM +0200 10/11/04, Matthijs van Duin wrote: >On Mon, Oct 11, 2004 at 11:52:52AM -0400, Dan Sugalski wrote: >>Yeek. Looks like Data::Swap swaps the contents of two SVs. >> >>Should we have an equivalent API entry for Parrot? (I'm presuming >>this is useful, but I'm nervous about allowing it as it can break >>static assumptions about types) > >It can already break things in perl5. If you do: > >swap \$x, \@y; > >you're going to help yourself into a world of hurt. Ah, point. Fair 'nuff -- I'll add support for this into parrot with the big caveat "Yes, we *do* allow you to shoot yourself in the <insert body part here> if you want". :) -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai [email protected] have teddy bears and even teddy bears get drunk