Re: 300 Statement Limit
Well, it probably isn't very important but I don't undertand a statement
like you.
I thought an if/else/endif loop makes only one branching, so for me else=end
if=0 statement.
for me, a statement is algorythmic, not syntactic. so if this.e contains 10
statements,
include this.e adds 10, not 1 or 11to the count. And the procedures or
functions...
I don't know. If you consider them like macros, you should add their
statements count each time
Riwal Raude
rauder at thmulti.com
> -----Original Message-----
> From: Lewis Townsend [SMTP:keroltarr at HOTMAIL.COM]
> Sent: Thursday, March 16, 2000 7:49 PM
> To: EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject: Re: 300 Statement Limit
>
> Hello,
>
> >A statement is any non-blank, non-comment line, assuming
> >"normal" formatting, with one statement per line.
> >euphoria\bin\lines.ex will give you an estimate
> >within +/- 10% of the statement count calculated
> >by the interpreter.
>
> This does seem rather vague. I don't know if we really need
> to be more specific considdereing that if you have the PD
> version and you go over 300 statements it will let you know.
> But, someone might want to know before then. Or as a Registered
> user and library author, someone might want to know if their
> library should or should not be stamed. Here are some
> assumptions that I would make when calculating a rough estimate.
> I hope Robert will correct me if I'm wrong on something.
> I'm also assuming that this isn't supposed to be secret or anthing.
>
> a = b -- 1 statement
> a = b + 1 -- 1 statement
> a = a + b -- 1 statement
> a = (b * c) + (d + e) -- 1 statement
> a = (b = c) and (d = e) -- 1 statement
> a = my_func (arg1, arg2) -- 1 statement
> a = func1 (func2 ()) -- 2 statements ?
> a = my_func (b + 1, c * d) -- 1 statement
> my_proc (arg) -- 1 statement
> if a then -- 1 statement
> end if -- 1 statement
> if wait_key () then end if -- 2 statements
> if a * b then -- 1 statement
> if a and b then -- 1 statement
> if a or b then -- 1 statement
> else -- 1 statement
> else a = b -- 2 statements
> atom a -- 1 statement
> atom a a = 0 -- 2 statements
> constant a = 0 -- 1 statement
> constant a = 0, b = 1 -- 2 statements
> while a do -- 1 statement
> while a and/or b do -- 1 statement
> for a = b to d do -- 1 statement
> while a do this() end while -- 3 statements
> end while -- 1 statement
> end for -- 1 statement
> include "this.e" -- 1 statement
>
> anyone that wants to add to this list or correct, please do.
>
> later,
>
> Lewis Townsend
> keroltarr at hotmail.com
> http://geocities.com/keroltarr/
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
|
Not Categorized, Please Help
|
|