Re: A thought occured to me...

2002-03-29 Thread Larry Wall
Dan Sugalski writes: : At 12:59 PM + 3/28/02, Piers Cawley wrote: : Wouldn't it be nice if you could do: : : class Foo { : ... : : {intern('{}')} := method ($self: $key) is lvalue { : ... : } : } : : So, later, you could do: : : $obj = Foo.new; : : $obj{something}

Tree Transformations (was: Perl6 Macros)

2002-03-29 Thread Michel J Lambert
- Transformation: they can look inside the structure of their arguments. Ok, here's where I think you don't want to go. I understand the power, Too late. I'm going there... :) Letting it sit in my mind for a few days, I have a couple new ideas,, or rather, ideas I've read about elsewhere,

Re: Tree Transformations (was: Perl6 Macros)

2002-03-29 Thread Luke Palmer
Too late. I'm going there... :) Good for you. I was hoping transformations could make it :) Here's something I was wondering. Say you wanted to write a pow() macro (from a previous example) that would forward to C's pow() unless the exponent was an integer, in which case it would optimize to