Re: A question about certain language features

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

On 15 Feb 2002, at 0:32, David Cuny wrote:

> 
> Robert wrote:
> 
> > In situations where it really doesn't matter how 
> > something is written, I think there are advantages to
> > reducing the number of choices.
> 
> But in this case, it's not a matter of cosmetics. It actually *does* matter
> how
> (and where) something is written. By splitting the declaration from the
> assignment:
> 
>    integer foo
>    ...
>    foo = 123 -- default value
> 
> you increase the chances that the code will encounter an uninitialized 
> variable. And when that happens, the Euphoria interpreter stops, and anything
> the user was doing is permanantly lost.

Program runs for an hour, then:
error - end while - undefined

I thought these were caught at compile time?

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu