Thanks for your help; that first form is a lot clearer. I have a slightly upgraded version of my program (www.rosycrew.com/symtab.factor) that adds the words new-symtab and new-forth-word --- as this seems to be the idiomatic way to do it (rather than require the user to do his own xxx new and then call init-xxx). The key to making the whole thing work, however, is to have init-xxx as a separate function from xxx new so that it can be called by the init-child function without doing a new of the parent tuple (we want to do a new of the child tuple, not the parent tuple, in order to get all of the child slots in addition to the parent slots).
The documentation in Factor is quite extensive. I still wish there were a tutorial available though. Your documentation is all at the same level, meaning that looking up elementary concepts is no easier than looking up advanced concepts. I tend to get bogged down in searching through the documentation. Most of my questions are pretty elementary; these are questions that could have all been answered in one place --- rather than have the answers scattered around throughout the on-line documentation. I have experience with LaTeX. When you guys are ready to write a tutorial, I could be the technical writer. If you provide a roughly formatted text file, I could create a neatly-formatted pdf file. Being a novice myself, I can also be a judge of what is clearly explained, and what is likely to baffle the novice --- depending on whether I understand it or not myself. > Message: 3 > Date: Mon, 18 May 2009 22:56:19 -0500 > From: Slava Pestov <sl...@factorcode.org> > Subject: Re: [Factor-talk] OOP tutorial > To: factor-talk@lists.sourceforge.net > Message-ID: > <806f58f20905182056la3afff6n2fa9d21bed3db...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Hugh, > > That's not a slot, its just part of the syntax. There are two forms of > tuple literal: > > TUPLE: point x y ; > > T{ point { x 1 } { y 2 } } > T{ point f 1 2 } > > Both are equivalent. With the former you name slots with the latter > you write 'f' followed by slot values in order. > > Slava ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk