Re: 300 Statement Limit
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Mar 16, 2000
- 469 views
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