Re: Essential feature: assertions
- Posted by JJProg at CYBERBURY.NET
Jan 30, 2001
Could you not do:
type assert(atom x)
return x
end type
assert myAssert
integer rtn
rtn = routine_id("")
myAssert = (rtn >= 0) -- it fails here, and Euphoria will tell you the
line number etc. if you have the full version or if it's under 300 lines
Jeff Fielding
----- Original Message -----
From: "George Henry" <ghenryca at LYCOS.COM>
To: <EUforum at topica.com>
Sent: Tuesday, January 30, 2001 2:23 AM
Subject: Re: Essential feature: assertions
> Assertions are more general. You can assert any condition.
>
> George
> --
>
> On Mon, 29 Jan 2001 22:52:17
> Aidan Bindoff wrote:
> >Excuse me for being slow off the mark, but is the only difference between
> >"assertions" and "type" the method of returning the error?
> >
> >
> >Regards,
> >Aidan
> >
> >____________________________________________________________
> >T O P I C A -- Learn More. Surf Less.
> >Newsletters, Tips and Discussions on Topics You Choose.
> >http://www.topica.com/partner/tag01
> >
> >
>
>
> Get your small business started at Lycos Small Business at
http://www.lycos.com/business/mail.html
>
> ____________________________________________________________
> T O P I C A -- Learn More. Surf Less.
> Newsletters, Tips and Discussions on Topics You Choose.
> http://www.topica.com/partner/tag01
>
>
____________________________________________________________
T O P I C A -- Learn More. Surf Less.
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01
|
Not Categorized, Please Help
|
|