Hi -jn-
At 11:32 AM 12/15/99 -0600, you wrote:
BORING PREFACE:
Perhaps I should clarify my purpose. My 25+ year career in computing
(including 12 years teaching math and computing science) has routinely
[snip]
With all due respect ... ;-)
ACTUAL REPLY:
[EMAIL PROTECTED] wrote:
...
I
Hi Ingo,
without wanting to sway opinions one way or the other. You wrote:
Thus insert? / tail? would work on the series at the variables index,
empty? / append would work on the series at a whole. That seems consistent
to me, not to words, that seem to mean different things (empty?/tail?)
Hi,
yesterday we've tried multisession.r script found at rebol.org together
with my friends. The problem is, after trying to connect from some
domain, script disconnected even my local running telnet sessions.
The script can be found at http://www.rebol.org/advanced/multisession.r
site
I
So, to reflect conceptually,
" ... the block exists on its own, and [the variable] simply refers to
[a position] of the block."
And as Elan pointed out, a series (which is also a block) can be
represented, for discussion purposes, like this:
series: use [current-position] [
On 12/16/1999 at 12:17 AM [EMAIL PROTECTED] wrote:
[...]
On the other hand, I prefer to keep the vocabulary needed to describe
REBOL
to a minimum. I also like to exploit the similarity of principles, to
keep
the volume of information needed to reason about REBOL to a minimum. If
we
just
Passing by reference
Hi,
I have a quick question. How can I pass a variable to a function by reference
(as opposed to by value) in Rebol? I have tried fiddling with "to-set-word",
literal words, etc., but to no avail. I am probably missing something
obvious.
As a quick example, how could I
Hello [EMAIL PROTECTED],
Passing by reference
a: 0 ; 0
b: 'a ; a
to-set-word b ; a:
to-set-word b 1 ; 1
a ; 0
so what is the point of to-set-word if I can then not use it to set the
thing? Do I need an extra block and a "do" or
Elan writes:
Regarding the any-string! problem: REBOL's error message is incorrect,
since make does support datatypes. Any-type! should not be categorized by
type? as being of type datatype! (which is the reason for the erroneous
error message):
type? string!
== datatype!
s: make string! ""
Elan raised several interesting points. To minimize message size,
I'll split up my part of the conversation.
[EMAIL PROTECTED] wrote:
...
Sure you can use make on datatype! values. It's just any-string! is
not a datatype! value.
The interpreter thinks that it is.
help datatype?
Hi Anton,
Hmmm. So why doesn't:
to-set-word b 1
work then? What is the difference when you assign "to-set-word b" to
another
word (c) and then use c? Why does your method work whereas mine doesn't?
look at this code (you can copy it to Rebol):
a: 0
b: 'a
c: to-set-word 'a
On Thu, 16 Dec 1999 [EMAIL PROTECTED] wrote:
Passing by reference
[..snip..]
inc: func [i] [i: i + 1]
j: 0
inc j
print j
0
Try
inc: func ['i] [set i (get i) + 1]
Gisle
Perhaps this will make more sense to you:
a: 0
== 0
b: to-set-word 'a
== a:
; Note the ":"
b 1
== 1
a
== 1
On Thu, 16 Dec 1999 15:39:51 +, [EMAIL PROTECTED] wrote:
Hi Anton,
Hmmm. So why doesn't:
to-set-word b 1
work then? What is the difference when you
A collegue gave me the list below. It was too good not to share.
(Especially if you've ever had to deal with employees, customers,
students, ... Have I managed to offend everyone yet?)
-jn-
===
Performance Evaluation
Another fragment in the continuing dialogue.
[EMAIL PROTECTED] wrote:
My problem with what you are doing here is not so much where you are
heading. It is the reason you give for heading there. You see, you
formulate two different things,
1. inserting a value into a series and
2.
[EMAIL PROTECTED] wrote:
Based on the above, we can say that
1. A series IS a data storage into which we may insert data.
2. A series HAS a current position at which the data storage
is accessed
In THEORY, a series is a data storage and a "current position"
within that storage.
In
See below:
Russell [EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 1999 6:17 AM
Subject: [REBOL] "logical" value referencing ... Re:(5)
On 12/16/1999 at 12:17 AM [EMAIL PROTECTED] wrote:
[...]
On the other hand, I
Hi Joel,
you wrote:
a: next "123456"
b: next next a
I suggest that there are three entities of interest:
i) one which we get at via the variable 'a
ii) one which we get at via the variable 'b
iii) one which we can't get (directly) but which corresponds to a
copy of the literal
This sort of thing is discussed some in the new user's guide:
http://www.rebol.com/manual/expfunctions.html
under the section: "Controlling Argument Evaluation"
Cheerfulness,
-EAT
[EMAIL PROTECTED] wrote:
Passing by reference
Hi,
Passing by reference
Hi,
I have a quick question. How can I pass a variable to a function by
reference
(as opposed to by value) in Rebol? I have tried fiddling with "to-set-word",
literal words, etc., but to no avail. I am probably missing something
obvious.
As a quick example, how could I
How about this for a simple approach? Simply
respect REBOL's insistence on passing by value and
work with it;
inc: func[x][x + 1] a: 0==
0 a: inc a ; all one has to do is insert a: , not even one extra
line of code!== 1 a== 1 ; a has beenincremented as
intended and the script is much
Hi Eric,
you wrote interesting stuff:
If you ask REBOL, any-string! is a datatype! value.
datatype? any-type!
== true
This works better (for this particular example ;-):
datatype? any-string!
== true
That's the problem. type? any-string! indeed returns datatype! However,
any-string! is not
21 matches
Mail list logo