Re: private routines

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

Ralf


His example's procedure only has scope with in the function
in other words private outside of his function
That would be a benifit.

bernie

Ralf wrote :


>>> There are times when "private routines" would be convenient.. like:

..The example shows what you want to do.
..I already knew this 'primal' example. Precisely what are the benefits
..compared to this syntax:

..atom a, b, c

..function foo ()
..    a = 1
..    b = 2
    ..
..end function

..procedure bar ()
..    c = a + b
..end procedure


..Your syntax:
> function foo( )
>   atom a, b, c
>   a = 1
>   b = 2
>   procedure bar( )
>     c = a + b
>   end procedure
>   ...
> end function


----------------------------------------------------------------------------
----
Back to: Top of message | Previous page | Main EUPHORIA page


----------------------------------------------------------------------------
----
  Back to the LISTSERV home page at LISTSERV.MUOHIO.EDU.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu