Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-12 Thread arcadi shehter
Luke Palmer writes: > I don't think so. Rather, that becomes: > > him.hit(I); > > And to clarify, you should probably format it like this: > > hit him: I; > > But computer languages aren't generally used to specify past tense > anyway > why priperties are sort of ... becau

Re: Array Questions

2003-01-12 Thread Michael Lazzaro
Luke Palmer wrote: > I would imagine that would only work if $a was known at compile time: I think we could do it at runtime too. You could conceivably use runtime resolution to, for example, choose from between several different caching behaviors to be passed to a complex routine: sub get_c

Re: "Disappearing" code

2003-01-12 Thread Ken Fox
Damian Conway wrote: sub debug is immediate is exported (@message) { return $debugging ?? { print $*STDERR: @message; } :: {;} } Won't @message need lazy evaluation? How will Perl know to delay interpolation until the result of the "macro" is called at run time? - Ken

Re: "Disappearing" code

2003-01-12 Thread Damian Conway
Ken Fox wrote: Won't @message need lazy evaluation? How will Perl know to delay interpolation until the result of the "macro" is called at run time? Good point. It would also need to be slurped. So that's: sub debug is immediate is exported (*@message is lazy) { return $debuggi