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

World: r3wp

[!REBOL3-OLD1]

Steeve
9-Jan-2009
[9454x2]
lol...
docs: func [
	"Browse on-line documentation."
][
	print "Opening web browser..."
	browse http://www.rebol.net/wiki/R3_Alpha
	exit
]
mwahahaha... very impressive...
BrianH
9-Jan-2009
[9456]
Why not? It works :)
Steeve
9-Jan-2009
[9457]
yeah it works ;-)
BrianH
9-Jan-2009
[9458x2]
Those docs will be web indexable too, so they'll show up in search 
engines.
And the CureCode access willl let yo see bugs when REBOL itself is 
too buggy to see them. I find that comforting.
Steeve
9-Jan-2009
[9460]
I found the new fully integrated REBOL editor.

editor: func [
	"Write your code."
][
	print "Opening Rebol editor..."
	launch "notepad"
	exit
]
BrianH
9-Jan-2009
[9461x2]
Again, whatever gets the release out the door. At least it's mezzanine 
- you can change it in your %user.r.
The goal is to get more developers involved. That is why we focused 
on communications infrastructure: so we can handle more.
Steeve
9-Jan-2009
[9463x2]
don't worry Brian, i think it"s good ideas
even if it makes me smile a little
BrianH
9-Jan-2009
[9465]
You might be shocked how much effort it takes to keep REBOL simple 
:)
Steeve
9-Jan-2009
[9466]
(btw for the others, the notepad editor is a joke)
BrianH
9-Jan-2009
[9467x2]
Well, you got me - I hadn't used the internal editor in years, so 
I just took your word for it :)
Though I should have realized when you said launch instead of call.
Steeve
9-Jan-2009
[9469]
and with no parameters too, y
BrianH
9-Jan-2009
[9470]
I'm still waiting on an answer about that INSERT of unset! values 
change in the 2.7 series...
Steeve
9-Jan-2009
[9471]
what should be the usage of unset! values in series ?
BrianH
9-Jan-2009
[9472]
I don't know. I know that if you need to have an unset! vale in a 
series, not being able to insert one would be a hassle. I just don't 
like the wrapper code  that it requires sometimes (as in that MAP 
discussion).
Steeve
9-Jan-2009
[9473]
you can insert unset! as a word , it's enough
BrianH
9-Jan-2009
[9474]
Then it is a word, or perhaps a datatype. Sometimes you really need 
an unset! value - like if you *want* an error on eval.
Steeve
9-Jan-2009
[9475]
in many scripts i use unset! values to compose optionnals data (like 
in to a draw block).
>> compose [ a b 1 (opt1) 2 c x (opt1)]
with opt as empty blocks ot containing optionnal values
BrianH
9-Jan-2009
[9476]
That's nice, I agree :)
Steeve
9-Jan-2009
[9477]
so it's a problem
BrianH
9-Jan-2009
[9478]
If you compose an unset value, it still doesn't insert it.
Steeve
9-Jan-2009
[9479x4]
ah !?
right !
but not for reduce [()]
it's inconsistent
IMHO
BrianH
9-Jan-2009
[9483x2]
Right, it's supposed to be - that's why there are  two functions.
In 2.7.6:
>> compose [a b c (()) d]
== [a b c d]
>> compose [a b c (#[unset!]) d]
== [a b c d]
>> compose [a b c ([#[unset!]]) d]
== [a b c unset d]
Steeve
9-Jan-2009
[9485]
>> compose [a b c (reduce[()]) d]
== [a b c unset! d]
BrianH
9-Jan-2009
[9486]
Yeah, I just tested that in R3 too. Note that unset! values mold 
differently in R3. The serialized constructor doesn't work yet either.
Gabriele
9-Jan-2009
[9487]
Brian, the change in INSERT .. unset! may have been requested by 
Ladislav, but I don't really remember. I suspect it was intentional.
Maxim
9-Jan-2009
[9488x4]
is there a newer meaner version of protect?
one that CANT be unprotected?
cause right now, we can't ensure a word is never replaced by a malicious 
piece of code.
For example, I'd add quite a few protects in my user.r to ensure, 
no application tries to replace how LOAD and SAVE function...
BrianH
9-Jan-2009
[9492]
Not yet. Modules are what is going to protect against malicious code, 
in theory.
Maxim
9-Jan-2009
[9493x4]
but what about the actual global words....
I want to be able to protect many core words.
or rather, I'd like for those words to be protected, for my clients 
sake.
for example.
BrianH
9-Jan-2009
[9497]
Once modules are implemented there will be no global words.
Maxim
9-Jan-2009
[9498]
ok then, I'll keep my question for that phase then  :-)
BrianH
9-Jan-2009
[9499x3]
Please ask them then!
Here's my favorite new REBOL 3 function: WHY?

>> 1 / 0
** Math error: Attempt to divide by zero
** Where: /
** Near: / 0

** Note: use WHY? for more about this error

>> why?
Opening web browser...
WHY? takes you to the DocBase page for that error.
Henrik
10-Jan-2009
[9502]
AmigaOS has a similar command. :-)
btiffin
10-Jan-2009
[9503]
It just hit me.  You know ... REBOL is actually kinda cool.  We should 
check it out.

Or do I mean  Go rebols GO!  Woohoo!