From: Robert E. <pa...@tu...> - 2004-02-14 23:32:03
|
> 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. |