On Sat, Apr 12, 2008 at 04:49:39AM -0000, John M. Dlugosz wrote: : In S06, "A method's invocant always has the alias self. Other styles of self can be declared with the self pragma." : : What is the self pragma, and what are other styles of self, prey tell?
Seemingly a placeholder for future generations to decide. In reality, a sop for all the losers in the long, drawn out what-do-we-call-the-invocant battle. :) It's probably just a wrapper for a term:<this> kind of macro in any case. And not terribly important. It's just we have a vague policy that when some pragma is changing a built-in keyword, we usually name it the same as the keyword, and we're claiming that a self pragma is the right name for modifying "self". Or something like that. Now that people have gotten used to self.foo and $.foo, it may be that the demand for the pragma has fallen off a bit... :) Larry