it is known, as it is passed all the way down. if i understand you
correctly.

to explain a little more...@prefix is known from the start, when Miter
is created. the prefix gets passed to it. Miter then creates some Table
objects which are stored in array. the prefix is passed to each of
those. in turn Table creates some Section objects which too are stored
in an array. again prefix is passed to those Section objects. and so on.
until prefix is passed all the way down to the Element objects where it
is actually used.

shirai's idea of environmental acquisition is interesting, but seems
like more overhead then simply passing it all the way down.

~transami


On Sat, 2002-07-06 at 21:00, Alan Chen wrote:
> On Sun, Jul 07, 2002 at 09:08:38AM +0900, Tom Sawyer wrote:
> > well, i have an object called a Miter, and it has an array of Table.
> > each Table has an array of Section. each Section has an array of Cell.
> > and each Cell has an array of Element.
> > 
> > so when i create a Miter, i pass in a @layout and a @prefix. the @layout
> > gets parsed thus creating all those subobjects, but in so doing, each
> > Element has a @name which needs to be prefixed with @prefix.
> > 
> > does that help?
> 
> Hmmm.. is @prefix know when you're creating your Element objects?
> 
> -- 
> Alan Chen
> Digikata LLC
> http://digikata.com
> 
-- 
~transami

"They that can give up essential liberty to obtain a little
 temporary safety deserve neither liberty nor safety."
	-- Benjamin Franklin