> Maybe I'm missing something, but this doesn't seem to make > sense to me. > Recursion typically works from the "top" down - or more > appropriately in > this case, from the "outside" in,
structural recursion (without conditional constraint syntax) is by definition 'infinitely' recursive. but that's not a problem when you've got structs. for example: <cfset X=StructNew()> <cfset X.Y=StructNew()> <cfset X.Y.Z=X> this is completely doable, and is useful for some abstract applications (like for developing decision-path expressions, building syntax parsers, or indices for grammar induction systems, etc). since the implied application of wddx is the transfer of (complex) data-structures between systems, it would be nice if there was an inclusion of syntax for recursion. > while in your example, > you're working from > the inside out - which at least in this case would never > finish, since your > parser would rebrowse the nested variable, which would point > to the outer > variable, which would take you to the nested variable ... the wddx parser need-not infinitely traverse the structure, but merely assign the same pointer/reference that the cf engine uses when creating references to structs, whenever it hits a pointer-type variable. > For what it's worth, I've never encountered recursion in any > XML language to > my recollection. neither have i. but that doesn't mean it wouldn't be hella useful. there are tons of common plex structures which have multi-entry points into nodes and in many cases have completely circular references. maybe i'm the only one who thinks it'd be useful if there were a standard way to transfer these structures across systems or have an easy way to store and rebuild them in an xml format. > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > voice: (202) 797-5496 > fax: (202) 797-5444 brendan avery 2.0 - [EMAIL PROTECTED] ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

