Re: Error when tryijng to use Upper()

new topic     » goto parent     » topic index » view thread      » older message » newer message

[snip]

>I had a line in my program:
>
>integer printerr
>             err
>
>I got a message saying err wasn't defined.  I finally used
> integer printerr, err  and it liked that.
>
>I have a constant list with several items that works fine.
>  Why doesn't it work the an integer list?

Because if you have lines like this...

constant x = 1
         y = 2

it is saying "define a constant called 'x' and assign it the value '1', and then
set a variable called 'y' to the value '2'.


In general, a LIST of items in Euphoria needs each item except the final to be
followed by a comma. Thus the *constant* definition above should be written ...

constant x = 1,
         y = 2

Note the comma after the '1'.

-- 
Derek

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu