[REBOL] Re: differences between script output and typing with tcp port

2004-04-05 Thread Jones, Scott
=== 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

[REBOL] Re: [Function] with [Variable number of args]

2004-04-05 Thread Coussement Christophe
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

[REBOL] Re: [Function] with [Variable number of args]

2004-04-05 Thread Maxim Olivier-Adlhoch
> 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

[REBOL] Re: [Function] with [Variable number of args]

2004-04-05 Thread Gerard Cote
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 >

[REBOL] Re: subtracting binaries

2004-04-05 Thread Gregg Irwin
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

[REBOL] Re: [Function] with [Variable number of args]

2004-04-05 Thread Maxim Olivier-Adlhoch
> > 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

[REBOL] Re: [Function] with [Variable number of args]

2004-04-05 Thread Ashley TrĂ¼ter
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

[REBOL] [Function] with [Variable number of args]

2004-04-05 Thread Gerard Cote
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

[REBOL] Re: differences between script output and typing with tcp port

2004-04-05 Thread SunandaDH
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

[REBOL] Re: differences between script output and typing with tcp port

2004-04-05 Thread sags
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

[REBOL] Re: rebol get-together in montreal ?

2004-04-05 Thread Maxim Olivier-Adlhoch
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

[REBOL] Re: rebol get-together in montreal ?

2004-04-05 Thread Louis Gosselin
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

[REBOL] Re: differences between script output and typing with tcp port

2004-04-05 Thread Anton Rolls
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:

[REBOL] Re: command line arguments

2004-04-05 Thread Anton Rolls
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: