This is the current way:

    f: func [n [number! unset!]] [
        if not value? 'n [n: 0]
        print n
    ]

----- Original Message -----
From: Jeff Patton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 07, 2001 7:45 PM
Subject: [REBOL] question: calling functions without passing parameters


>
> I'm new to Rebol, but looking for a quick answer I can't find in the core
manual.
>
> Can I specify a function with an optional parameter? - one that may or may
not be passed, or that could have a default value if not passed?
>
> thanks in advance,
>
> -Jeff
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to