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

Re: extensions to settor variables?



Well, having a "call when referenced" function for a variable is indeed
going over the top, but I can't really see how else you could generalise
it. I mean, you don't really want to have:
	- a function called when you dereference anything, or
	- a %assign hook, or
	- a %reference hook, or
	- a (called hook) hook,
because now you're grubbing around in the internals, and defining fundamentals
in terms of concepts which are in turn defined by the fundamentals.

Really, "call when referenced" is useful *only* when debugging. Perhaps there
could be something equivalent to sequence points, and an if %debug is
defined, it's called at each point; %debug would be a little like a
supervisor trap, in that it automatically undefines itself for the duration
of its invocation.

Hehe.

steve