Hi Elan:
That is such a cool solution! I'm liking rebol
more and more as time goes on.....
BTW: I think I'm going to be setting up an online
course for a local school district on intro to programming.
I am strongly lobbying to use rebol as the language.
It's going to bypass a lot of the multi-OS problems
presented by C/Perl etc.
Course will start in September, and although I can't
guarantee, maybe we can use your book as the course
book. :>) Tim
At 12:45 PM 5/18/00 -0700, you wrote:
>Hi Tim,
>
>you wrote:
>>Hello Allies:
>>I gotta say it: extra verbiage is not simplicity. It would
>>cause a client of mine alarm, and that ain't simple....
>>Wouldn't take a lot of code to give an option to suppress...
>>but what the hey -
>>I modified Michael's idea of ending the script with a true
>>and ended it with prin ""
>
>Why not use a roll-your-own if replacement?
>
>_if: :if
>if: func [condition block [block!] /quiet /local result] [
> result: _if condition block
> either quiet [
> exit
> ][
> return result
> ]
>]
>
>
>>> if false ["Will return false."]
>== false
>>> if/quiet false ["Will NOT return anything."]
>>>
>
>
>Note that you cannot redefine if UNLESS you preserve its original behavior
>as the new, reassigned if's default behavior, because there are some
>mezzanine functions that expect if to return some value. These functions
>may fail if your reassigned if does not act as they expect.
>
>That's why my reassigned if preserves the behavior of REBOL's original if
>as its own default behavior when it is called without the /quiet
>refinement. The mezzanine functions will be served the result they expect.
>
>
>>That shut the sucker up!
>>Thanks As Always :>) Tim