Re: if statement not working

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

----- Original Message -----
From: "Graeme" <graemeburke at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: if statement not working


>
>
> >I just tripped against this stupid restriction again last night. I've
> written a function called
> >begins() to help me out, but it ain't pretty.
> >
> >   if begins(s, t) then ...
> >
> >I originally wrote:
> >
> >   if equal(s[1..length(t)], t) then ...
> >
> >but this fails whenever s is shorter than t.
>
>
> Yeah, and I hate having to press enter at the end of the
> line, it really annoys me. Rob can you fix this or I want my
> money back.....
>

Thanks for those encouraging words. I feel much better now that I realise I
must not desecrate the temple of Euphoria.

> But seriously, having the interpreter return a valid result
> from accessing non-existant data is just way stupid.
>

Graeme, you are absolutely correct.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu