Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

What Function Am I In?

 [1/2] from: tim:johnsons-web at: 25-Aug-2001 13:40

Hello All: Is there a way to to refer to the context of a function, from within that function? As in 'self, where 'self refers to the object? That would be a great asset to me! Thanks Tim

 [2/2] from: deadzaphod::flyingparty::com at: 25-Aug-2001 17:03

I don't think there's anything quite like 'self in an object, but in most cases you can refer to the context by binding to 'local (which exists in the function's context if you use any local variables or create the function with the 'function shortcut rather than 'func). Hope that helps, Cal Dixon