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/
-><-
If I declare a global variable in one script, then do another, is that
variable inherited by the done script?
Regards,
Deryk
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
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
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
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
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
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 [
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.
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
[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
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
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,
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
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
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
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
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
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
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
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
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
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]]
>
> 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
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
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
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
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 [
28 matches
Mail list logo