Alan C didn't request including an @label for his particular situation,
but if you are going to make something which can run a script file
with an unusual path, and args, better include how to specify
an @label as well.

I would much prefer option 2:

> 2.  Use a special function

> call(?"c:\program files\powerpro\scripts\echo", "test","args")

> Seems dumb to have to use a function just to call a function.

Doesn't seem dumb to me.
call() would be very similar to do()
except it is only used to call script files.

I think that is better than adding exceptions and complications
to the current syntax: [EMAIL PROTECTED](args)

In your example call above, is "test" meant to be the @label?
I think it should be.
It may be better to require that the user has to keep the leading @
which would make a script using that call easier to understand,
when reading someone else's script, or reading your own script
2 years later:

call(?"c:\path\scriptname.powerpro", "@test", "args")

---------------------------------------------------------

Another reason for people to use this function (apart from
running a script from any directory) is when they wish to use
an expression (such as a variable) for the label, which is
currently rather difficult to do.

Example for a script which has several sections labelled @section5 etc:

  ;; First some routines to give zLabel a numeric value, then...
  zLabel = "@section" ++ zLabel
  call(?"c:\foldername\misc.powerpro", zLabel, "args")


Similarly you could make a friendly name for the script's filepath:

MathScr = ?"c:\other scripts\math.powerpro"

zAngle = call(MathScr,"@acos",zCosine)



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to