Re: Re: [Fwd: Dynamic Host Markers]

Robert Ellison <[email protected]> Sat, 14 Feb 2004 16:30:29 -0700
Newsgroups gmane.comp.graphics.chromium.environment
Organization Tungsten Graphics, Inc.
Message-ID <[email protected]>
> So here is a way to nicen the syntax.  
> 
> -Every Node type gets a list of constraint attributes.  This is implicit in 
> the "#" dynamic marker syntax as well, I believe.
> 
> -The constructor definitions get changed to be of the form:
> 
> CRNetworkNode( object, tagString="match_string" )
> 
> and the treatment of object depends on tagString.  The default behavior adds a 
> match-this-string-type constraint to the node's constraint list, so that old 
> scripts don't break and old tools and conf writers don't get confused.  The 
> availability of tagString and a new Node.addConstraint() method allows for a 
> lot of future expansion.  One could even do something like:
> 
> CRNetworkNode( "foo", "dynamic_host" )
> 
> to get exactly the internal logic your proposal would give with
> 
> CRNetworkNode( "#foo" )

I'm fine with this.

I'll give others a day to review and comment, and if no one objects, I'll change 
it on Tuesday.

Bob Ellison
Tungsten Graphics, Inc.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click