Re: Spelling error in error message

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

Carlos Jose Gonzalia wrote:

> was also in the interpreter. I used this test program (test.ex):
>
>         sequence x
>         x = {1,2,3}
>         ? x[{2}]
>
> And I get this error message (and corresponding file ex.err):
>
>         test.ex:3
>         subscript must be an atom
>         (reading an element of a sequnce)
>
>         Global & Local Variables
>
>          test.ex:
>             x = {1,2,3}

        Carlos, your mistake is that your're referencing a sequence
index (that is item number 2, or second item, of sequence X) with
another sequence(the value {2} is a sequence of one item.
Your code should be:
        ? x[2]
                Do you see the diference? Now your saying:
                Please mr. interpreter would you be so kind of
                printing the second element of sequence "x".

        I hope this helps you.
        By your name I assume you speak Spanish, so:
        Mira si tienes mas dudas respecto a Euphoria escribe y con
gusto te contesto en nuestro idioma materno ;) Por lo demas si vas
a mi homepage (el link esta al final de este mensaje) puedes encontar
el manual de referencia de Euphoria en castellano (yo mismo lo traduje).

        Bye, adios!
--
     email: architek at geocities.com
  homepage: http://www.geocities.com/SiliconValley/Heights/9316

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

Search



Quick Links

User menu

Not signed in.

Misc Menu