1. Some typos in the online reference manual

In document: http://www.rapideuphoria.com/refman_2.htm (point 2.2.4 Operations
on Sequences)

in the below code ending closure for equal() and compare() function calls should
be ")" not "}"

       if equal("APPLE", "ORANGE"} then  -- CORRECT

In general, you can do relational comparisons using the compare() built-in
routine:
       if compare("APPLE", "ORANGE"} = 0 then  -- CORRECT

You can use compare() for other comparisons as well: 
       if compare("APPLE", "ORANGE"} < 0 then  -- CORRECT
           -- enter here if "APPLE" is less than "ORANGE" (TRUE)

new topic     » topic index » view message » categorize

2. Re: Some typos in the online reference manual

felix wrote:
> In document: <a
> href="http://www.rapideuphoria.com/refman_2.htm">http://www.rapideuphoria.com/refman_2.htm</a>
> (point 2.2.4
> Operations on Sequences)
> 
> in the below code ending closure for equal() and compare() function calls
> should
> be ")" not "}"
> 
>        if equal("APPLE", "ORANGE"} then  -- CORRECT
> 
> In general, you can do relational comparisons using the compare() built-in
> routine:
> 
>        if compare("APPLE", "ORANGE"} = 0 then  -- CORRECT
> 
> You can use compare() for other comparisons as well: 
>        if compare("APPLE", "ORANGE"} < 0 then  -- CORRECT
>            -- enter here if "APPLE" is less than "ORANGE" (TRUE)

Thanks.
I've uploaded the corrections now.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu