Re: $ME in a method called as a subroutine

2000-08-23 Thread Piers Cawley
Markus Peter [EMAIL PROTECTED] writes: --On 22.08.2000 18:24 Uhr + David L. Nicol wrote: Regardless of what its called, in a method called as a subroutine, the variable could refer to the last instance of this kind of object used by this thread. Hmm Does that mean if I once

RE: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-23 Thread Brust, Corwin
Correct me if I'm wrong here, but I think what David wanted was an easy way to reference other keys of an hash while creating one, ie: How to do this, in a line: %h = ( first = 10 ); $h{second} = $h{first} * 2; Because, as I'm sure you know, this code (when run w/out strict):

Re: $ME in a method called as a subroutine

2000-08-23 Thread David L. Nicol
Piers Cawley wrote: In my opinion the contents of $ME should allow to determine wether it was called as a procedure or as a method, the easiest way to do that is undef for procedure, object for method and classname for class methods. Procedure reference for a procedure call please. It

Re: RFC for $ME class variable (was Re: RFC 124 (v1) Sort order forany hash)

2000-08-23 Thread Nathan Wiger
You can have your cake, but not force us to eat it too... Like $AUTOLOAD, $ME would be dynamically scoped: The first time I saw the bareword "self" keyword I almost wet myself in horror, but I would say that $AUTOLOAD is a disaster that should not be repeated. And that's the way that this