1. Re: Short Circuiting

Robert wrote:

> And here's a real solution. :)
>
> if match("EOF", s) = 1 then
>     [alpha]
> else
>     [gamma]
> end if

I agree. However, I wasn't after a *specific* solution to the problem,
as much as trying to make a point as WHY people might like to use
short-circuiting.

I still hold to my initial assertion: the need to do bounds checks
before checking values could be eased by "safer" routines. But as your
example shows, perhaps I've been to myopic on how this could be
accomplished with existing functionality.

-- David Cuny

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu