Phil, You might also like >foo and foo>, setting and getting respectively. Or >>foo foo>>. I think one of these syntaxes will be the new tuple slot accessors in the new object system.
Doug On Dec 17, 2007, at 4:23 AM, Phil Dawes wrote: > Hi All, > > For the last few weeks when using dynamic variables I've tended to > create a new 'accessor' word rather than using 'foo get'. > > E.g. I'd do > > : foo "foo" get ; > > I don't know what it is about the 'get' word, but for me it seems to > interrupt the flow of the code. However I found that using @ in > place of > get (like forth does) doesn't niggle nearly me as much: > > : @ get ; > > foo @ do-something-with-foo > > Does anybody else find 'get' gets in the way? > > N.B. I've held off redefining ! for 'set' for the time being (and thus > redefining the comment character in the process), mainly because I > don't > set variables very often and when I do it tends to be in a block at > the > start of a scope. > > Cheers, > > Phil > > > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
