[REBOL] Inherit global var? Re:

2000-07-04 Thread Al . Bri
Deryk wrote: > If I declare a global variable in one script, then do another, is that variable inherited by the done script? Not exactly inherited, but it's able to be accessed in the 'do-ne script. Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/ -><-

[REBOL] Inherit global var?

2000-07-04 Thread support
If I declare a global variable in one script, then do another, is that variable inherited by the done script? Regards, Deryk

[REBOL] Automation query...

2000-07-04 Thread tbrownell
Hi. What is the best way to run a script on a timer basis? I have a script that that fires off another that checks a pop account every minute and then runs any scripts it finds. This is a bit thick, but it works... N: repeat 100 [wait 60 do %popreader.r] This is lacking as... A. If it h

[REBOL] Fun with literals (was Parser seems to have bug...) Re:

2000-07-04 Thread bhandley
Hi Brian. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 03, 2000 8:35 AM Subject: [REBOL] Fun with literals (was Parser seems to have bug...) > Hi Brett! > > While you're reassembling, think of the advantages that this > trick can give you. Th

[REBOL] Linked list in rebol/RebDB Re:(3)

2000-07-04 Thread lmecir
Hi Tim, > Hi Gabriele: > > t> I'd like to implement a *triple* linked list in rebol. > > t> Below is a "c" structure: I'd welcome advice on how > > > >I think that how to create the REBOL data structure depends on > >what you want to do, not on how you'd do it in C. :-) > You're entirely corr

[REBOL] Objects, Making-Of Re:(8)

2000-07-04 Thread lmecir
Hi, > Hello [EMAIL PROTECTED]! > > On 04-Lug-00, you wrote: > > l> Correcting myself. Still not bug-free. The code should be: > > l> append spec either function? :f [ > l> reduce ['func load mold third :f copy/deep second :f] > l> ] [ > l> reduce ['first reduce [:f

[REBOL] Fun with literals (was Parser seems to have bug...) Re:

2000-07-04 Thread lmecir
Hi Brian, > Hi Brett! > > While you're reassembling, think of the advantages that this > trick can give you. This kind of assignment can be useful for > implementing what the C world calls static local variables. > > You can set a word to a literal string value, then append to > that string to cr

[REBOL] auto string! to block! convertor

2000-07-04 Thread weirddream
Zdravim, This is just one line code but it really excites me :)) maybe you find it useful for functions accepting string! or block! as input. It makes block with the string item out of a string and does not touch block. And it's nicer than some ..either string? [...][...]... :) stribl: func [

[REBOL] Objects, Making-Of Re:(4)

2000-07-04 Thread lmecir
Hi, > Hello [EMAIL PROTECTED]! > > On 03-Lug-00, you wrote: > > C> But now the context thing comes in for real, ;-) > > Yup. :-) > (...) > C>>> o5: make object! append [a: 5 g:] reduce ['func first :f second :f] o5/g > > Here a new function is created, but it shares its body block with > F's.

[REBOL] Linked list in rebol/RebDB Re:(2)

2000-07-04 Thread tim
Hi Gabriele: > t> I'd like to implement a *triple* linked list in rebol. > t> Below is a "c" structure: I'd welcome advice on how > >I think that how to create the REBOL data structure depends on >what you want to do, not on how you'd do it in C. :-) You're entirely correct about this and I ag

[REBOL] RFF: copy/pick Re:

2000-07-04 Thread brian . hawley
[EMAIL PROTECTED] wrote: >Hi, I have a request for feature (RFF) concerning 'copy and/or 'pick. >It would be nice to be able to use one of the following to extract a >series of binary values from an other binary series: > >pick/range series start end >copy/range series start end > >Where 'start an

[REBOL] Re: RFF: copy/pick

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 04-Lug-00, you wrote: r> copy/range series start end What's wrong with COPY/PART AT SERIES START END - START ? Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it

[REBOL] Re: Linked list in rebol

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 03-Lug-00, you wrote: t> I'd like to implement a *triple* linked list in rebol. t> Below is a "c" structure: I'd welcome advice on how I think that how to create the REBOL data structure depends on what you want to do, not on how you'd do it in C. :-) Regards,

[REBOL] Re: Objects, Making-Of Re:(6)

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 04-Lug-00, you wrote: l> Correcting myself. Still not bug-free. The code should be: l> append spec either function? :f [ l> reduce ['func load mold third :f copy/deep second :f] l> ] [ l> reduce ['first reduce [:f]] l> ] This is f

[REBOL] Re: Objects, Making-Of Re:(2)

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 03-Lug-00, you wrote: C> But now the context thing comes in for real, ;-) Yup. :-) C>>> a: 0 f: func [] [a] The 'A in the body block of the function F is bound to the global context. C>>> o1: make object! [a: 1 g: func [] [a]] o1/g G is a new function; the 'A

[REBOL] Fun with literals (was Parser seems to have bug...)

2000-07-04 Thread brian . hawley
Hi Brett! While you're reassembling, think of the advantages that this trick can give you. This kind of assignment can be useful for implementing what the C world calls static local variables. You can set a word to a literal string value, then append to that string to create a string accumulator

[REBOL] Linked list in rebol/Inserting blocks into blocks Re:(3)

2000-07-04 Thread tim
Hi Ladislav: That is precisely what I wanted to do: Thank you! At 09:35 AM 7/4/00 +0200, you wrote: >Hi, > > >> Well, I'm trying insert a block into a series of blocks: >> Consider the following code: >> ;=== >> triple: copy [] >> insert/only triple [1 234] >> p

[REBOL] Webcam URL Re:(5)

2000-07-04 Thread allenk
Better than television, we have REBOL Vision... A little REBOL/View script to grab and display the webcam pic every 5 minutes. Hopefully we don't bring the server down. (The webcam is stuck at the moment though) Cheers, Allen K - Original Message - From: <[EMAIL PROTECTED]> To: <[EMA

[REBOL] Objects, Making-Of Re:(6)

2000-07-04 Thread lmecir
Correcting myself. Still not bug-free. The code should be: append spec either function? :f [ reduce ['func load mold third :f copy/deep second :f] ] [ reduce ['first reduce [:f]] ] > > --- Start -- > > >> a: 0 f: func [] [a] > > >> o1: make object! [a: 1 g: fun

[REBOL] RFF: copy/pick

2000-07-04 Thread robert . muench
Hi, I have a request for feature (RFF) concerning 'copy and/or 'pick. It would be nice to be able to use one of the following to extract a series of binary values from an other binary series: pick/range series start end copy/range series start end Where 'start and 'end are numeric absolute posit

[REBOL] Objects, Making-Of Re:(5)

2000-07-04 Thread lmecir
Hi, > --- Start -- > >> a: 0 f: func [] [a] > >> o1: make object! [a: 1 g: func [] [a]] o1/g > == 1 > >> o2: make object! append [a: 2 g:] [:f] o2/g > == 0 > >> o3: make object! append [a: 3 g:] compose/deep [first [(:f)]] o3/g > == 0 > >> o4: make object! append [a: 4 g:] reduce ['first reduce

[REBOL] Objects, Making-Of Re:(6)

2000-07-04 Thread Christian . Ensel
Hello [EMAIL PROTECTED], On 04-Jul-00, You wrote: > The explanation #2: [...] > , but Source then created a bit different representation of that. Oh, I like this explanation. I already learned that 'source doesn't always show the excact source code which was assigned to a word (e.g. a: make in

[REBOL] Objects, Making-Of Re:(4)

2000-07-04 Thread Christian . Ensel
Hello [EMAIL PROTECTED], On 04-Jul-00, You wrote: > Your results differ from mine, I would suggest you to try once > more... How embarassing! The differences are because of a typo and wrong cutting/pasteing, sorry! --- Start -- >> a: 0 f: func [] [a] >> o1: make object! [a: 1 g: func [] [a]]

[REBOL] to-path curio

2000-07-04 Thread Jean . Holzammer
> > And finally > >> print replace %anz-visa-statement--.r "--" { [30-May-2000 27-Jun-2000]} > anz-visa-statement [30-May-2000 27-Jun-2000].r > Success. > > Last question: Are such filenames legal on other OSs (other than Windows)? > > Brett. > Ok, just can tell you about AmigaOS: character

[REBOL] Linked list in rebol/Inserting blocks into blocks Re:(2)

2000-07-04 Thread lmecir
Hi, > Well, I'm trying insert a block into a series of blocks: > Consider the following code: > ;=== > triple: copy [] > insert/only triple [1 234] > print mold triple > insert/only head triple [2 234] > print mold triple > insert/only next triple [3 345] > print mold

[REBOL] Objects, Making-Of Re:(5)

2000-07-04 Thread lmecir
The explanation #2: > Finally, another question, (...), arised in this process: > > I never understood why > > -- start of console session -- > >> source func > *func*: *func* [ > "Defines a user function with given spec and body." [catch] > spec [block!] {Help string (opt) followed by ar

[REBOL] Objects, Making-Of Re:(5)

2000-07-04 Thread lmecir
Hi, > Finally, another question, (...) arised in this process: > > I never understood why > > -- start of console session -- > >> source func > *func*: *func* [ > "Defines a user function with given spec and body." [catch] > spec [block!] {Help string (opt) followed by arg words (and opt

[REBOL] Objects, Making-Of Re:(3)

2000-07-04 Thread lmecir
Hi, > But now the context thing comes in for real, ;-) > Look at the following console session > > -- Start of console session -- > >> a: 0 f: func [] [a] > >> o1: make object! [a: 1 g: func [] [a]] o1/g > == 0 > >> o2: make object! append [a: 2 g:] [:f] o2/g > == 0 > >> o3: make object! append [