Re: private routines

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

>Why can't you use local routines to shorten yor code ?
>There is a namespace problem, but this aint it.
>Local routines work fine, as long as only those global routines, which were
>directly requested are accesable.
>
>Ralf

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

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

I'm so sorry I can't come up with a better (but *simple*) example... have to
resort to this lame one ..! :/


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu