[EMAIL PROTECTED] wrote:
> Hi Petr,
>
> I'm also interested in a good challenge - and I happen to be looking for an
> opportunity to practive parse rules.
>
> If you have the time, could you release (on or off list) a more detailed
> specification for what you are trying to do? If parse can't h
Larry wrote:
> tic5: func [/local t] [
> t: now/time
> toc5: func [] [print ["elapsed time:" now/time - t]]
> ]
This might be slightly more accurate/faster:
tic6: func [/local t] [
toc6: func [] [print ["elapsed time:" now/time - t]]
t: now/time
]
I've just swa
t wrote:
> I've followed the "thanks" thread with interest, because I'm in a
similar boat to Petra's. Probably next semester I'll start with C or
Java or somthing.
If you have the choice, choose Java or C++ first, then C later. Bjarne
Stroustrup recently pointed out that it's better for
See remarks below:
Russell [EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 28, 1999 4:34 PM
Subject: [REBOL] Series essay Re:(6)
> Gabriele,
>
> I think, using your example, that I have found a bug in REBOL.
> >> block: co
Bo asked:
> ... what is "Shadowrun"?
It's a roleplaying game, available from FASA. Basically, Cyberpunk
mixed with AD&D and real Central American mythology, set in the year
2050.
Andrew Martin
Mad roleplayer...
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
Online @ 33,600 Baud!
-><-
Hi Joel,
You are certainly correct in pointing out that pointers and indexes can be
converted into each other. But you do have to be careful:
I am sure you agree with me that if i is an index into a buffer,
int i; char buf[10], *p;
then trying to access the element at buf[i] is quite somethi
Hi Elan
Thanks for the comment. I agree. Actually, I am experimenting with trying to
implement Lisp (actually Scheme) programming techniques in REBOL. Capturing
state in a function is one of the basic techniques emphasized in Structure
and Interpretation of Computer Programs by Abelson and Sussma
[EMAIL PROTECTED] wrote:
>
> We are concerned with a terminology that is designed to
> conceptualize the REBOL programming language...
>
No.
I am concerned with understanding, and being able to describe and
predict, the behavior of REBOL expressions using concepts and terms
that are common in
[EMAIL PROTECTED] wrote:
>
> In C pointers and indexes are different ways
> >to get at, peek into, observe, manipulate, or eavesdrop on, the
> Nevertheless it would not be a good idea for a C programmer to
> confuse an index with a pointer, nor would it be advisable for
> someone, who wants to pr
Hi -t,
why not write a C or Java source code generator in REBOL?
You'll have to learn what a Java or C source file looks like. Let's take C.
Normally a C file is either a source code file, or a header file. A code
file (typically filename.c) will begin by including some header files such as:
Hi Jerry,
I attempted to try your example, but I ran into a glitch:
>> block: copy [] repeat i 4 [use [x] [x: i * i append block 'x]]
== [x x x x]
>> do x/1
** Script Error: x has no value.
** Where: do x/1
Perhaps you meant:
>> do block/1
If you did mean do block/1 and do block/2 etc.
then
Hi Jerry
Yup, that works. But you could also nest timings with a simple change to
tic3 and toc3.
tic: func [] [insert [] now/time exit]
toc: func [] [
print ["elapsed time:" now/time - first second second :tic]
remove second second :tic
exit
]
>> tic tic wait 3 toc tic wait 5 to
Hi Petr,
I'm also interested in a good challenge - and I happen to be looking for an
opportunity to practive parse rules.
If you have the time, could you release (on or off list) a more detailed
specification for what you are trying to do? If parse can't handle it well,
I'd like to know that tha
Hi Larry,
first comment, I like your version 3 best:
>tic3: func [] [toc3: func [] compose/deep [print ["elapsed time:" now/time -
>(now/time)]]]
This approach really makes good use of REBOL's abilities. While it looks
trivial, I think that functions, which create functions, which in turn
refle
Hi Eric,
I have a moment, so here is another piece of the puzzle.
You wrote:
> The
> series used as the range argument must reference the same
> series that's being searched.
>
>You'll see that a "series" is said to reference a "series" - not terribly
>clear wording, but given that they ha
Jerry,
What is 'x supposed to be in your example?
>> block: copy [] repeat i 4 [use [x] [x: i * i append block 'x]]
== [x x x x]
>> print block
1 4 9 16
>> do x/1
** Script Error: x has no value.
** Where: do x/1
>> do x/2
** Script Error: x has no value.
Larry,
I like your tic toc pair. However I sometimes wish to nest their use as in
the example:
>> tic tic wait 3 toc tic wait 5 toc tic wait 2 toc toc
0:00:03
0:00:05
0:00:02
0:00:10
>>
The program I used is
stack: copy []
push: func [x][insert stack x exit]
pop: func [/local a]
[
if (length? s
Hi guys,
I've followd the "thanks" thread with intrest, because I'm in a similiar
boat to Petra's. Probably next semester I'll start with C or Java or
somthing.
So Rebol won't ruin me for other languages, but instead help me
understand them? I'm already loyal to REBOL (its got a very high "coo
Gabriele,
I think, using your example, that I have found a bug in REBOL.
>> block: copy [] repeat i 4 [use [x] [x: i * i append block 'x]]
== [x x x x]
>> do x/1
== 1
>> do x/2
== 4
>> x/1 = x/2
== true
>> x/1 == x/2
== true
>>
What do you think? Is it a bug?
Jerry
Hi all
Below are some handy timer functions for REBOL. The idea of tic and toc
comes from the MATLAB numeric package. One advantage of using a pair of
functions is that they can be placed most anywhere in a piece of code
without modifying it (as is sometimes necessary with the time-block
approa
[EMAIL PROTECTED] wrote:
> Hello [EMAIL PROTECTED]!
>
> On 27-Dic-99, you wrote:
>
> P> [thru "s" "om" skip " " "t" thru "t" " " "to" " " "p" skip
> P> skip "se"]
>
> What about:
>
> [thru "som" skip " t" thru " to p" 2 skip "se"]
Well, it doesn't solve my situation actually. The search
Hi,
is there
any way how to go into ZIP and RAR archives with REBOL?
I need to get archive structure at least (list
of compressed files in the archive)
thanx oLdes
I may be totally naive, but what is "Shadowrun"?
On 27-Dec-1999/2:37:47-6:00, [EMAIL PROTECTED] wrote:
>Hello,
>On 26-Dec-99, [EMAIL PROTECTED] wrote:
>
foo: [a b c d e]
>> == [a b c d e]
index? find foo 'b
>> == 2
>
>Short and sweet, thanks. Now to start figuring out how I want to m
{{
Actually, nothing happens when entering or exiting the functions.
The binding is done when they are created. That is, make function!
creates a new context based on the spec, and then binds the body
block to that context.
}}
Which also neatly explains why local values are persistent. They are
(
Hi Eric,
you appear baffled by my use of the term "dereference". I hope the
following quote will help.
Note the sentence:
"Is it important to clear large blocks of data before
DEREFERENCING them?"
> Quote Begins Here <<
From: [EMAIL PROTECTED]
Hi B
Don't know if you tried this, Joel, but here's a few more interesting
lines to add to your example.
>> a: 1
== 1
>> b: 2
== 2
>> e: [a b c]
== [a b c]
>> print e
** Script Error: c has no value.
** Where: c
>> f: func [n /local c][c: n bind e 'c print e]
Hello [EMAIL PROTECTED]!
On 27-Dic-99, you wrote:
j> Thanks for your descriptions! They've stimulated some
j> additional questions, given below. Might I trouble you for
j> some more ideas?
No trouble. :-) I'll try to provide you my own answers, even if
they could be wrong. :-)
j> You've pe
Hi,
sorry for disagreeing with you:
not silly.
Ladislav
>
> Hi Elan,
>
> I think you've got us all mystified. You said to Joel:
>
> >You also quote excerpts that demonstrate the use of the verb "to refer"
in
> >a context where something is being referred to. This class of quotes does
> >not m
Yes, that's what I tried to say.
You're welcome.
Ladislav
- Pùvodní zpráva -
Od: <[EMAIL PROTECTED]>
Komu: <[EMAIL PROTECTED]>
Odesláno: 28. prosince 1999 16:43
Pøedmìt: [REBOL] Series essay Re:(6)
> [EMAIL PROTECTED] wrote:
> >
> > Hi, Joel,
> >
> > although not been asked, trying to
Hello [EMAIL PROTECTED]!
On 27-Dic-99, you wrote:
P> [thru "s" "om" skip " " "t" thru "t" " " "to" " " "p" skip
P> skip "se"]
What about:
[thru "som" skip " t" thru " to p" 2 skip "se"]
It shouldn't be a problem to build that.
Regards,
Gabriele.
--
o) .-^-. (--
[EMAIL PROTECTED] wrote:
>
> Hi, Joel,
>
> although not been asked, trying to answer some questions.
>
> 1) The model of binding Gabriele (not Gabrielle)
[sigh...] It seems I am unable to type these days without making a
typo! [My apollogies, Gabriele!]
>
> proposed was proposed as a
> hypo
Hi Elan,
I think you've got us all mystified. You said to Joel:
>You also quote excerpts that demonstrate the use of the verb "to refer" in
>a context where something is being referred to. This class of quotes does
>not make any statement about WHAT IS DOING the referring. What use are
>quotes
Hi Petra,
it is a bitter truth. Jobwise you will currently find more opportunities
with Perl than with REBOL. You will also find far more competent
competitors in the market.
If I may wonder out loud: How many people on this list know of job openings
that could be filled with someone who knows
Hi, Joel,
although not been asked, trying to answer some questions.
1) The model of binding Gabriele (not Gabrielle) proposed was proposed as a
hypothesis, that could explain the Rebol behaviour. Since then it has
succeeded to explain every situation encountered and to make valid
predictions, so
34 matches
Mail list logo