Re: A question about certain language features

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

On Tuesday 12 February 2002 08:34 am, Ed Davis wrote:
!
>
> Note that the 'standard' definitions of Pascal, Modula-2,
> and Oberon, do not allow variables to be initialized when
> they are declared, just like Euphoria.  So Professor Wirth
> perhaps thinks it is a bad thing?  I have read several of
> his books dealing with the mentioned languages, but I have
> not been able to find a justification for not allowing
> variables to be initialized when declared.
>
> But there must be a reason.  I can't believe it is just an
> arbitrary restriction.

Many design decisions were made for the purpose of keeping the 
parser simple. I expect that is one of them. 

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu