[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Weird bug with Dictionary-atFail




and i seem to remember that's the only place that atFail is used.
it predates the ?? syntax entirely.


On Nov 6, 2004, at 10:18 PM, James Harkins wrote:

OK, good diagnosis.

I think I'm going to commit the ?? {} version because ?? is inlined now, so it will be faster than passing the function into atFail.

hjh


actually, the problem is ithe second return in Object.dependants. if you change it from

	dependants {
		^dependantsDictionary.atFail(this, { ^IdentitySet.new });
	}

to

	dependants {
		^dependantsDictionary.atFail(this, { IdentitySet.new });
	}

it works as expected.

best,
adc