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.....
But seriously, having the interpreter return a valid result
from accessing non-existant data is just way stupid.
Graeme
|
Not Categorized, Please Help
|
|