Re: Scoping rules in WebDNA 4.0
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 29417
interpreted = N
texte = Grant Hulbert wrote:> In earlier versions of WebCatalog, we had more explicit scoping, such> as [math]x[/math] to retrieve the value of a math variable. Due to> overwhelming requests to simplify the syntax, we created a 'lazy> syntax' which allowed constructs like [x]. Naturally this introduced> new confusion, as people had trouble knowing which scope the value of> x was to be displayed.> Original syntax:> [math]x=12[/math]> [search db=blah]> [founditems]> [x] <-- returns 12 if there are no database fields named x,> otherwise return field value> [/founditems]> [/search]I suggest the following notation for variable [{x}] to retrieve a variable content and [x] for field name so :[x]=[{x}] would mean put the content of var x in field x ;-)Brice--Brice Le Blevennec, Digerati, ListDad,
Ex Machina Interactive Architects S.A., Ex Nihilo Uno S.A. &Ex Machina Graphic Design S.P.R.L. Ex Machina Television SPRL NetBusiness S.A. ContactOffice #############################################################This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to
Associated Messages, from the most recent to the oldest:
Grant Hulbert wrote:> In earlier versions of WebCatalog, we had more explicit scoping, such> as [math]x[/math] to retrieve the value of a math variable. Due to> overwhelming requests to simplify the syntax, we created a 'lazy> syntax' which allowed constructs like [x]. Naturally this introduced> new confusion, as people had trouble knowing which scope the value of> x was to be displayed.> Original syntax:> [math]x=12[/math]> [search db=blah]> [founditems]> [x] <-- returns 12 if there are no database fields named x,> otherwise return field value> [/founditems]> [/search]I suggest the following notation for variable [{x}] to retrieve a variable content and [x] for field name so :[x]=[{x}] would mean put the content of var x in field x ;-)Brice--Brice Le Blevennec, Digerati, ListDad, Ex Machina Interactive Architects S.A., Ex Nihilo Uno S.A. &Ex Machina Graphic Design S.P.R.L. Ex Machina Television SPRL NetBusiness S.A. ContactOffice #############################################################This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to
Brice Le Blevennec
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:
Question on the sandbox (2003)
Introduction/Tutorial/QuickStart (1997)
redirect with frames (1997)
WC Database Format (1997)
multi-paragraph fields (1997)
WCS Newbie question (1997)
company names not begin with a letter (2005)
One other big addition... (1997)
WebCat2 - Getting to the browser's username/password data (1997)
[WebDNA] 6.2 Monitor (2012)
[FoundItems] solved - thanks (1997)
'does not contain' operator needed ... (1997)
Include files (1998)
[WebDNA] Emerging from the Shell (was: unique words) (2009)
Another question (1997)
[sendmail] and [formvariables] (1997)
different show next (1997)
Resume Catalog ? (1997)
Errata: WCS Newbie question (1997)
Re:Copyright ? (1997)