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 pleas

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 m

Re: $ME in a method called as a subroutine

2000-08-22 Thread David L. Nicol
Markus Peter wrote: > > ... then I run into trouble > if the method author does not even know wether its procedural or OO. What I wrote is dependent on an environmnet where the C keyword is used to write methods that are distinct from subroutines, and also, a C with the same name could be writt

Re: $ME in a method called as a subroutine

2000-08-22 Thread Markus Peter
On Tue, 22 Aug 2000, David L. Nicol wrote: > Yes, that's pretty much it. More opportunity to be lazy, but only > if you know how. This way the authors of methods never have to fiddle > with checking ever again. And users who call methods like subroutines > had better know what they are doing

Re: $ME in a method called as a subroutine

2000-08-22 Thread David L. Nicol
Markus Peter wrote: > > --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 all $

Re: $ME in a method called as a subroutine

2000-08-22 Thread Markus Peter
--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 all $obj->method() and then afterwards somew