Re: Recursion & WebDNA

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22810
interpreted = N
texte = > I was looking for a way to recursion. It occurred to me that I could >create an include file [include filename.inc] with a database search that >includes itself inside the foundItems loop. Is this a good idea? I >don't expect more than 10 levels of recursion, but am I planning to cause >myself way too much grief?Recursion works the way you describe. It is true that deeper levels of recursion use up a certain kind of memory called stack space, but WebCatalog will report when it runs out in case you recurse too deep. We have rewritten WebCatalog (3.x and up) to be much more efficient about stack space.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. RE: Recursion & WebDNA (Olin Lagon 1999)
  2. Re: Recursion & WebDNA (PCS Technical Support 1999)
  3. Recursion & WebDNA (Phil Marshall 1999)
  4. Recursion & WebDNA (Phil Marshall 1999)
> I was looking for a way to recursion. It occurred to me that I could >create an include file [include filename.inc] with a database search that >includes itself inside the foundItems loop. Is this a good idea? I >don't expect more than 10 levels of recursion, but am I planning to cause >myself way too much grief?Recursion works the way you describe. It is true that deeper levels of recursion use up a certain kind of memory called stack space, but WebCatalog will report when it runs out in case you recurse too deep. We have rewritten WebCatalog (3.x and up) to be much more efficient about stack space.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2 several catalogs? (1997) SHOWIF/HIDEIF empty fields (2005) Public beta 2 for WebCatalog 4.0 is now available. (2000) Updating fields from different platforms (1998) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998) multiple search commands (1997) Whois (2003) Formulas.db + Users.db (1997) [WebDNA] WebDNA Showcase? (2008) Price Hacking (1998) Paranoid about serial numbers...not (1998) E-mail loop ! (1997) Listfiles (1998) MATH (1998) RE: 2nd WebCatalog2 Feature Request (1996) Rhapsody? (1997) Realtime Transaction Processing (1999) Practice runs ? (1997) Variable Math (1998) Summing fields (1997)