===
On 5 Apr 2004 at 23:06, Anton Rolls wrote:
I think don't use /no-wait.
(You also might not need to use wait myPop, then ...)
Just a quick suggestion.
The difference between console typing session and
script is: the script doesn't pause in between...
===
From: Janeks
I experimented with wai
Hi Gerard,
I once use this little trick for handling a variable number of argument:
f: func [a [integer!] b [unset! integer!]][either value? 'b [a + b][a]]
>> f 1 2
== 3
>> f 1
== 1
Please remark that the type of the argument must be explicitely declared, otherwise:
f: func [a b][either value
> I have already seen somebody here redefine the REBOL PRINT
> for use its own PRINT substitute with extensions instead and
> when leaving
> his own context put back the normal PRINT so everything seems
> normal after.
slim includes (as part of its basic toolset) a very advanced print mechani
Hi Ashley and Maxim,
>From Ashley:
=
> Two ways of passing a variable number of arguments [that I know of] are
> blocks and refinements. Block usage:
>
> f: func [v [integer! block!]][...]
>
> f 1
> f [1 2]
>
> or refinements:
>
> f: func [v1 [integer!] /var v2 [integer!]][...]
>
> f 1
>
Oops! Small glitch in the optimized version (missed a bit).
Fixed:
add-bitsets: func [a b /local c i n carry] [
carry: 0
c: make bitset! length? a
repeat i (length? a) [
n: i - 1
switch carry + add get-bit a n get-bit b n [
0 []
1 [set-bit c n
>
> Can someone tell me if there is one simple way to do this
> with REBOL or if I have to define another independant
> function to do this.
no.
AFAIK rebol does not handle variable number of arguments, simply because it cannot
know where a specific word should stop using values.
rebol can
Hi Gerard,
Two ways of passing a variable number of arguments [that I know of] are
blocks and refinements. Block usage:
f: func [v [integer! block!]][...]
f 1
f [1 2]
or refinements:
f: func [v1 [integer!] /var v2 [integer!]][...]
f 1
f/var 1
Hi List,
while relaxing for a couple of days, I reread one of my old APL books and wanted to
try implement some useful mechanisms for vector
operations (a vector being a one dimensional array) using simple REBOL scripts. some
of these mechanisms are somewhat similar to the
higher-level function
Janeks:
> It looks like that I shoul upgrade my study PC to
> continue time effective Rebol studies.
Is it possible that the CGI is taking longer than a user-settable timeout
under Abyss?
(I've never used Abyss, but I see a similar problem with Xitami for programs
that take over 1 minute to
I experimented with wait / nowait - it is not a
reason.
It seems for me that reason is platform dependent or
mail server dependent.
The example I decribed in previous mesage I got on an
very old PC with Win95 4.00.950 B (processor 175 mhz)
;-) with MSIE 4.0 and freeware servers: web - Abyss
Hi All,
wow, there are more of us than I thought, :-)
remember that the invitation is also open to any of you from ottawa, southern or
eastern quebec, plastburg, champlain, which would like to attend !?
and everything in between...
With such a reply in less than a week... I can't see why the
Hi There,
Schedule permitting, I would be there, no doubts. Great idea. I'd be happy
also to contribute modestly to the get-together organization. I'm in
Montreal.
Cheers,
Louis
At 07:33 PM 02/04/2004, Maxim Olivier-Adlhoch wrote:
hi list,
I was wondering, would a get together in Montreal a
I think don't use /no-wait.
(You also might not need to use wait myPop, then ...)
Just a quick suggestion.
The difference between console typing session and
script is: the script doesn't pause in between...
Anton.
> newbie q:
>
> why there is differencies
> f.ex. script:
>
> [
> REBOL [Title:
What was the error ?
Anton.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> tony summerfelt
> >You can write:
>
> > either system/script/args [
>
> >instead of:
>
> >> either not system/script/args == none [
>
> got an error when i tried that:
14 matches
Mail list logo