Welcome, Guest. Please login or register.

Author Topic: ARexx: Use of external procedures  (Read 1579 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: ARexx: Use of external procedures
« on: December 10, 2004, 03:48:33 PM »
Quote
Is there a way to keep that funktion in memory for the duration of the calling program?

No. AFAIK the only way is to put the functions inside the same script file. Use procedures, like this:

/**/

say moo('test','foo')
exit

moo: procedure
  say 'numargs:' arg() 'args:' arg(1) arg(2)
  return 'moo ' || arg(1) || ' [' || arg(2) || '] !'

 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: ARexx: Use of external procedures
« Reply #1 on: December 11, 2004, 12:44:09 AM »
@Roj

Oh that's great stuff, indeed that should be a lot faster than calling external script every time.