Re: Why not declare?

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

At 12:25 AM 1/28/98 -0500, you wrote:
>Matt Williams writes:
>> Why not just have a DECLARE keyword or
>> something that lets you declare all
>> procedures, functions, and types that will be used later.
>
Borland's pascal uses the FORWARD directive to
pre-define procs/functions, handy if you really need it, but see below.

>I also feel there is some benefit in the
>language forcing you to order your
>routines in some way. I think it helps
>with maintenance and understanding,
>especially of other people's code.

Right! If I am going to wade through a mess of spaghetti, I want it
to be the kind with meat sauce, thank you. Besides, forward declarations
surely must add some overhead, maybe slow down the works a little ?

Irv
----------------------------------------------------------------------------
------
visit my Euphoria archives: http://www.mindspring.com/~mountains
----------------------------------------------------------------------------
------

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

Search



Quick Links

User menu

Not signed in.

Misc Menu