Re: [WebDNA] for a rainy day.. if ever/when the hood is up again
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107493
interpreted = N
texte = Govinda wrote:> Feature request:>> correct me if I am wrong, but it would be more modern if parsing would drop out of the [function] (with the [return] val.) whenever [return] was hit. I.e. it should be allowed to have many [return]'s inside conditionals.. inside the function... so we can just up and decide to jump out of the function with the return val at that point.The functionality of not breaking out of the function context when hitting a [return][/return] was by design.. this was so people can sculpt returns... ie., string of variables...-----------------------[function ..] [return]f_string=[/return] [showif blah=
][return]&f_something=[/return] [/showif] [showif otherblah=][return]&f_other=[/return] [/showif][/function]----[f_string][f_something][f_other]----------------------sure, the above could be done other ways.. but the functionality adds some useful properties in my opinion.Donovan-- Donovan BrookeEuca Design Centerwww.euca.uswww.keepitturning.co
Associated Messages, from the most recent to the oldest:
Govinda wrote:> Feature request:>> correct me if I am wrong, but it would be more modern if parsing would drop out of the [function] (with the [return] val.) whenever [return] was hit. I.e. it should be allowed to have many [return]'s inside conditionals.. inside the function... so we can just up and decide to jump out of the function with the return val at that point.The functionality of not breaking out of the function context when hitting a [return][/return] was by design.. this was so people can sculpt returns... ie., string of variables...-----------------------[function ..] [return]f_string=[/return] [showif blah=][return]&f_something=[/return] [/showif] [showif otherblah=][return]&f_other=[/return] [/showif][/function]----[f_string][f_something][f_other]----------------------sure, the above could be done other ways.. but the functionality adds some useful properties in my opinion.Donovan-- Donovan BrookeEuca Design Centerwww.euca.uswww.keepitturning.co
Donovan Brooke
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:
NetForms for mail, sorry (1998)
[shownext] (1998)
Templates on Unix & CGI on Mac? (1997)
INVENTORY:remotely creating and populating a stock inventory db - almost there! (1999)
Printing a final order (1997)
[WebDNA] Is WebDNA slowing things up - please try these URL's (2013)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
[sendmail] sending twice... (2003)
suffix mapping for NT? (1997)
Location of Webcat site in folder hierarchy (1997)
Multiple Ad databases? (1997)
Webcat2, WebCommerce, Mod 10 etc. (1997)
Stopping bad HTML propagation ? (1997)
emailer (1997)
textarea inputs and returns (1999)
RE: Template not found error messages (1997)
What am I missing (1997)
3.08 has trouble keeping the serial # ?? (2000)
using showpage and showcart commands (1996)
Protect (1997)