r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Graham
14-Jan-2010
[20863]
They're going to make great REBOL appliances !
Carl
14-Jan-2010
[20864]
Robert mentioned it.  Let's do it!
Graham
14-Jan-2010
[20865]
So, R2 first ... 2.7.7 to ARM, and then R3
Carl
14-Jan-2010
[20866]
Probably not.  R3 first... and if that works, then R2.  R3 is built 
for portability.  R2 can be problematic.
Graham
14-Jan-2010
[20867x3]
whatever works ..
though I do want to run Cheyenne on them !
Another entry for rebolweek ... RT is porting R3 to ARM
Cyphre
15-Jan-2010
[20870]
I have one R3 question...is this bug or was it changed intentionaly 
in R3 (don't remember right now):

>> a: [[1 + 2]]
== [[1 + 2]]

this is OK:
>> do a/1
== 3

but this doesn't evaluate in R3:
>> do to-path [a 1]
== a/1

>>
Steeve
15-Jan-2010
[20871x3]
I would say: intentionaly
>> do get to-path [a 1]
to-path return a quoted path
seems...
Cyphre
15-Jan-2010
[20874]
that is possible...I'd like to know the reason why it was changed 
as it is not symetric word! now...

in R2:
>> a: [[1 + 2]]
== [[1 + 2]]
>> b: [a a/1]
== [a a/1]
>> do first b
== [1 + 2]
>> do second b
== [1 + 2]
>> b: ['a 'a/1]
== ['a 'a/1]
>> do first b
== 'a
>> do second b
== 'a/1
>>


but in R3:

>> a: [[1 + 2]]
== [[1 + 2]]
>> b: [a a/1]
== [a a/1]
>> do first b
== [[1 + 2]]
>> do second b
== a/1
>> b: ['a 'a/1]
== ['a 'a/1]
>> do first b
== a
>> do second b
== 'a/1
>>


I think the R2 behaviour is more cleaner but maybe I'm missing something?
Steeve
15-Jan-2010
[20875x4]
Agree now, disturbing disturbing...
a: [[1 + 2]
b: [a/1]
>> do do do do do do b/1
== a/1

really disturbing...
Can't figure if it's good or bad.
i pass...
Rebolek
15-Jan-2010
[20879]
I think it's bad.
Steeve
15-Jan-2010
[20880]
But i'm afraid there are some drawbacks to reverse it to the R2 behavior.
Geomol
15-Jan-2010
[20881]
Notice there is bug involved:

>> do ['a]
== a

>> do do ['a]
>> a
** Script error: a has no value

One bug is, that
do do ['a]
doesn't raise an error, when a has no value.
Cyphre
15-Jan-2010
[20882]
Yes, there is definitely something wrong in this area with R3...so 
now it doesn't look like a intentional change.
Geomol
15-Jan-2010
[20883]
Simplest example, I think:

>> do 'a
>>
Henrik
15-Jan-2010
[20884]
wow, looks quite broken
Graham
16-Jan-2010
[20885x4]
How do you access the arguments when passed in a command line?

r3apha myscript.r argument-list ?
probe system/options/args
probe system/script/args

says system object is protected
eh? no one knows?
no help on decode-cgi either ... 
is anyone using R3 for CGI ?
Gregg
16-Jan-2010
[20889x2]
I thought it was supposed to be system/script/args.
Hmmm, same protected issue here.
Graham
16-Jan-2010
[20891x5]
checking curecode ...
known issue http://www.curecode.org/rebol3/ticket.rsp?id=628&cursor=7
or not ...
can someone with a curecode account log this as an issue pls?
btw, running with r3 -s script args
doesn't help either ...
PeterWood
16-Jan-2010
[20896x4]
Curecode #1430.
Graham - I've deleted the ticket because I can get the arguments 
but do get the message - it needs a bit more investigating before 
submitting the ticket.
>> probe read/string %testLaunch.r
{REBOL []

print system/options/args
print system/script/args
ask "ok?"
}


>> launch/args %testLaunch.r "text1 text2"  

Checking for rebol.r file in /Users/peter/Code/Rebol3/



System object protected

Evaluating: /Users/peter/Code/Rebol3/testLaunch.r
text1 text2

text1 text2

ok?y

== none
I don't have time to explore further at the moment. I'l try to do 
so later if nobody else has.
Graham
16-Jan-2010
[20900]
Peter, I'm testing from shell not using 'launch
PeterWood
17-Jan-2010
[20901x4]
launch simpy uses 'call to run a shell command. Anyway here is the 
ouput of the command line attempt:

Macintosh:Rebol3 peter$ ./rebol testLaunch.r "text1 text2"

Checking for rebol.r file in /Users/peter/Code/Rebol3/


System object protected

Evaluating: testLaunch.r
text1 text2
text1 text2
ok?

Macintosh:Rebol3 peter$
It might be different under windows though.
Seems okay under Windows too:


Checking for rebol.r file in /C/Documents and Settings/Peter/Desktop/Rebol3/

Evaluating: testLaunch.r
test1 test2
test1 test2
ok?
I didn't even get the System object protected message.
Henrik
17-Jan-2010
[20905]
I get system protected under OSX, but not under Windows.
Graham
18-Jan-2010
[20906]
Well, using 

r3alpha -cs script args


I can read the args now but it does still say system protected .. 
but I guess that's okay
Carl
18-Jan-2010
[20907x4]
Cypre: on PATH evaluation... if you think it's incorrect, submit 
it as bug. Thanks!
Please submit DO 'a as bug. Thanks!
Q: "is anyone using R3 for CGI ?" 
A: The new REBOL.com website is based on R3 CGI.
Can we terminate this !REBOL3 group, rename it to !REBOL3-G1 (or 
some such name), and start a new one?  This group has too many messages, 
making it very slow.
Sunanda
19-Jan-2010
[20911]
One last message to provide a link from the end of this to the start 
of the [web-public] archive.
This topic continues here:
   http://www.rebol.org/aga-display-posts.r?post=r3wp771x1
Carl
19-Jan-2010
[20912:last]
Thanks Sunanda.