RE: if statement not working

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

Graeme wrote:
> 
> >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.....

If yer gonna ask for something silly, it should at least NOT be 
implemented already :P

The only reason you have to press enter is because your editor limits 
you. Euphoria will accept any file regardless of line feeds and carriage 
returns, as long as each statement is separated with whitespace.

I compacted my minesweeper source code (@ 15,000 bytes) into a single 
line, and executed it.

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu