Re: Essential feature: assertions
- Posted by Derek Parnell <ddparnell at bigpond.com> Jan 29, 2001
- 561 views
----- Original Message ----- From: "George Henry" <ghenryca at LYCOS.COM> To: "Euphoria" <EUforum at topica.com> Sent: Tuesday, January 30, 2001 5:07 PM Subject: Essential feature: assertions [snip] > Euphoria can and should implement assertions in a more elegant way than C. All that's needed is an "assert" *keyword*, and the syntax "assert <expression>". So one would write: > > assert id_vitalProc >= 0 > I like this idea too. Plus something like ... with assert -- Evaluate any assert statements without assert -- Ignore any assert statements these would enable assert processing to occur during testing/debugging and also to be skipped ("without assert") when running code where performance is critical or if installed in production. Though I personnally would want assertions to execute even in production environments. ------ Derek Parnell Melbourne, Australia (Vote [1] The Cheshire Cat for Internet Mascot) ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01