Forcing a BlockContext to evaluate in current context -djb

Andreas Raab andreas.raab at gmx.de
Sun Feb 9 18:00:20 UTC 2003


[:context| context class] value: self.

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of Derek Brans
> Sent: Sunday, February 09, 2003 6:43 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Forcing a BlockContext to evaluate in current context -djb
> 
> 
> I want to force a block to evaluate in the current context.  
> How is this 
> done?
> 
> Example:
> [self class] valueInCurrentContext
> returns the class of the object that called "valueInCurrentContext"
> 
> Thank you in advance,
> Derek
> 
> Nerd on a Wire: Web and Information Solutions
> Website Design - Database Systems - Site Hosting
> 604.874.6463
> mailto:info at nerdonawire.com
> For more information, visit http://nerdonawire.com
> 
> 



More information about the Squeak-dev mailing list