From: Joel VanderWerf Date: 2006-10-05T10:06:54+09:00 Subject: Re: Associating data with a function Joel VanderWerf wrote: > Use closures and class scopes: > > class Foo > tmp1 = ExpensiveObject.new > tmp2 = ExpensiveObject.new Assuming you want to share the tmp1 and tmp2 among all instances of the class, which probably you don't want. Sorry. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407