System data
[1/17] from: steven:white:ci:bloomington:mn:us at: 2-Jan-2003 13:55
I notice you guys (in the gender-neutral sense) referring
to SYSTEM/this and SYSTEM/that, which seem to be
data items used by REBOL and available to programmers.
How did you find out what they all are? I have seen no
documentation on the REBOL web site. Do you just poke
around, or is there a more efficient way?
Thank you.
Steven White
City of Bloomington
2215 W Old Shakopee Rd
Bloomington MN 55431-3096
USA
952-563-4882 (voice)
952-563-4672 (fax)
[swhite--ci--bloomington--mn--us]
[2/17] from: al:bri:xtra at: 3-Jan-2003 10:07
Steven White wrote:
> I notice you guys (in the gender-neutral sense) referring to SYSTEM/this
and SYSTEM/that, which seem to be data items used by REBOL and available to
programmers. How did you find out what they all are? I have seen no
documentation on the REBOL web site. Do you just poke around, or is there a
more efficient way?
There's some documentation in the Rebol/Core .PDF which can be found on this
page: http://www.rebol.com/docs.html.
Another way of looking at system is by simply doing something like:
write %System.txt mold system
Or you can explore it for yourself at the console:
>> type? system
== object!
>> probe first system
[self version build product components words license options user script
console ports network schemes error standard view stats locale user-license]
== [self version build product components words license options user script
console ports network schemes error standard view stats...
>> probe system/version
2.5.3.3.1
== 2.5.3.3.1
And I'm sure there's a explorer script in Rebol avaible from someone on the
list.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[3/17] from: greggirwin:mindspring at: 2-Jan-2003 14:06
Hi Steven,
SW> I notice you guys (in the gender-neutral sense) referring
SW> to SYSTEM/this and SYSTEM/that, which seem to be
SW> data items used by REBOL and available to programmers.
SW> How did you find out what they all are? I have seen no
SW> documentation on the REBOL web site. Do you just poke
SW> around, or is there a more efficient way?
REBOL is highly reflective. You can poke around at the console or
use Romano's AnaMonitor app. When RIDE is released, it will also
contain a system object browser.
>> first system
== [self version build product components words license options user
script console ports network schemes error standard view stats...
>> first system/options
== [self home script path boot args do-arg link-url server quiet trace
help install boot-flags binary-base cgi]
You can also write the system object out to a file for a little light
reading later:
write %sys-mold.r mold system
-- Gregg
P.S. Cold up there? I was only in Bloomington once, but it seemed
nice. -G
[4/17] from: hallvard:ystad:helpinhand at: 2-Jan-2003 22:53
And although my tool can't compete with AnaMonitor, if you like the new Mac filebrowsers,
you could always try PROB (http://folk.uio.no/hallvary/rebol/prob.r).
~H
Dixit Gregg Irwin (22.06 02.01.2003):
[5/17] from: steven:white:ci:bloomington:mn:us at: 2-Jan-2003 16:13
>P.S. Cold up there? I was only in Bloomington once, but it seemed
>nice. -G
Terrible weather; too warm; no snow. I rode my bike to work today. We
need cold weather to kill off the non-native species (of the insect
variety).
--
To unsubscribe from this list, please send an email to
[rebol-request--rebol--com] with "unsubscribe" in the
subject, without the quotes.
Steven White
City of Bloomington
2215 W Old Shakopee Rd
Bloomington MN 55431-3096
USA
952-563-4882 (voice)
952-563-4672 (fax)
[swhite--ci--bloomington--mn--us]
[6/17] from: ammon:addept:ws at: 5-Jan-2003 8:36
Hm... I get:
>> do http://folk.uio.no/hallvary/rebol/prob.r
** Script Error: sort expected series argument of type: series port
** Where: do-facets
** Near: sort first to-display
EnjoY!!
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammon AT addept.ws)
----- Original Message -----
From: "Hallvard Ystad" <[hallvard--ystad--helpinhand--com]>
To: <[rebol-list--rebol--com]>
Sent: Thursday, January 02, 2003 2:53 PM
Subject: [REBOL] Re: System data
> And although my tool can't compete with AnaMonitor, if you like the new
Mac filebrowsers, you could always try PROB
(http://folk.uio.no/hallvary/rebol/prob.r).
[7/17] from: hallvard:ystad:helpinhand at: 5-Jan-2003 19:40
That's funny! I'm not able to reproduce your error. What version of /view do you use?
~H
Dixit Ammon Johnson (16.36 05.01.2003):
[8/17] from: g:santilli:tiscalinet:it at: 5-Jan-2003 20:27
Hi Hallvard,
On Sunday, January 5, 2003, 7:40:49 PM, you wrote:
HY> That's funny! I'm not able to reproduce your error. What version of /view do you
use?
It gives that error with View 1.2.8, but seems to work with 1.2.1.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[9/17] from: chalz:earthlink at: 5-Jan-2003 15:18
Ammon and I are probably using the same version, since we test stuff back
and forth some times.
REBOL/View 1.2.8.3.1 3-Aug-2002
Copyright 2000-2002 REBOL Technologies. All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
Type DESKTOP or SET-USER for settings.
>> do http://folk.uio.no/hallvary/rebol/prob.r
** Script Error: sort expected series argument of type: series port
** Where: do-facets
** Near: sort first to-display
>>
That's funny! I'm not able to reproduce your error. What version of /view do
you use?
~H
Dixit Ammon Johnson (16.36 05.01.2003):
[10/17] from: hallvard:ystad:helpinhand at: 5-Jan-2003 22:32
So... Are path! values no longer series! values in /view 1.2.8?
>> series? to-path system
== true
(REBOL/View 1.2.1.3.1 21-Jun-2001)
~H
Dixit Charles (21.18 05.01.2003):
[11/17] from: greggirwin:mindspring at: 5-Jan-2003 16:16
Hi Hallvard,
HY> So... Are path! values no longer series! values in /view 1.2.8?
>>> series? to-path system
HY> == true
They are still series! values under 1.2.8
-- Gregg
[12/17] from: hallvard:ystad:helpinhand at: 6-Jan-2003 20:22
So this error actually _should_ have occured d=E9j=E0 under 1.2.1. Look at this (from
1.2.1):
>> type? first to-path system
== object!
>> sort first to-path system
** Script Error: sort expected series argument of type: series port
** Where: halt-view
** Near: sort first to-path system
I really don't know why it doesn't occur with 1.2.1 in the prob.r script, but I might
look into it sometime in february.
~H
Funny though. Here's from the script:
PROB: func ['to-be-probed] [
if not value? 'to-be-probed [to-be-probed: 'system]
if any [any-function? get to-be-probed port? get to-be-probed] [
pop-up source-string :to-be-probed
exit
]
clear path-words
append path-words to-be-probed
to-display: to-path path-words
main: layout [
styles main-styles
title "Primitive Rebol Object Browser"
text "Current path: "
path-text: text form to-path path-words 745x16
across
list1: list data sort first to-display ; here's where the error comes
(...)
What I'm sorting turns out to be an object, but the point is: why on earth doesn't 1.2.1
fail on this?
Dixit Gregg Irwin (00.16 06.01.2003):
[13/17] from: anton:lexicon at: 7-Jan-2003 16:24
A big difference between 1.2.1 and the latest
betas is the "aggressiveness" of the path evaluation.
To be compatible with 1.2.1 and the later betas,
change code such as:
path
to:
do compose [(path)]
That will make sure the path is evaluated.
So in your case, I think you should change:
to-display: to-path path-words
to:
to-display: do compose [(to-path path-words)]
For the reason why, see the changes.txt file that
was included with the Core 2.5.3 release.
(Search for "Less Aggressive Evaluation")
Anton.
[14/17] from: lmecir:mbox:vol:cz at: 7-Jan-2003 9:34
Hi,
----- Original Message -----
From: "Anton"
> A big difference between 1.2.1 and the latest
> betas is the "aggressiveness" of the path evaluation.
<<quoted lines omitted: 8>>
> to:
> to-display: do compose [(to-path path-words)]
this isn't the correct place, actually, the expression
to-display: to-path path-words
should behave the same both in 1.2.1 and in the latest betas.
> For the reason why, see the changes.txt file that
> was included with the Core 2.5.3 release.
<<quoted lines omitted: 17>>
> > across
> > list1: list data sort first to-display ; here's where the error
comes
> > (...)
> >
> > What I'm sorting turns out to be an object, but the point is: why
> > on earth doesn't 1.2.1 fail on this?
the difference is here:
first to-display
in 1.2.1 this evaluates like the expression:
first do reduce [:to-display]
in the latest betas.
Regards
-L
[15/17] from: ammon:addept:ws at: 7-Jan-2003 10:06
Hi,
Actually I am using...
REBOL/Link 1.0.5.3.1 6-May-2002
Copyright 2000-2002 REBOL Technologies. All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
Do all of my testing from there...
Enjoy!!
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammon AT addept.ws)
[16/17] from: hallvard:ystad:helpinhand at: 7-Jan-2003 20:54
Thanks, Anton, that worked.
This should now work (tested with view 1.2.1 and view 1.2.8):
do http://folk.uio.no/hallvary/rebol/prob.r
(Don't know about /Link though. Ammond?)
Cela dit, there still are some other bugs in there, that I haven't sorted out. Maybe
some other day.
Ladislav: thanks for your suggestion. I tried yours first, but couldn't make it work
(it worked better without the 'do, but there still were errors in my console session).
So I returned to Anton's, which worked fine.
Regards,
~H
Dixit Anton (06.24 07.01.2003):
[17/17] from: ammon:addept:ws at: 7-Jan-2003 16:07
Hi,
It works good in Link now too!
Thanks!!
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammon AT addept.ws)
----- Original Message -----
From: "Hallvard Ystad" <[hallvard--ystad--helpinhand--com]>
To: <[rebol-list--rebol--com]>
Sent: Tuesday, January 07, 2003 12:54 PM
Subject: [REBOL] Re: System data
> Thanks, Anton, that worked.
>
> This should now work (tested with view 1.2.1 and view 1.2.8):
> do http://folk.uio.no/hallvary/rebol/prob.r
> (Don't know about /Link though. Ammond?)
>
> Cela dit, there still are some other bugs in there, that I haven't sorted
out. Maybe some other day.
> Ladislav: thanks for your suggestion. I tried yours first, but couldn't
make it work (it worked better without the 'do, but there still were errors
in my console session). So I returned to Anton's, which worked fine.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted