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

World: r3wp

[!REBOL3-OLD1]

[unknown: 5]
27-Jan-2009
[10212x2]
I'm thinking we need an any-path function.
or type rather.
Henrik
27-Jan-2009
[10214]
Paul, it returns false, because they are two separate refinements.

>> parse [/b/a] [2 any-type!]
== true
[unknown: 5]
27-Jan-2009
[10215x2]
Ahhhh.  I went the path route.
So with parse we should always think in terms of refinements instead 
of path.
Henrik
27-Jan-2009
[10217]
only if the leading char is not a /.
[unknown: 5]
27-Jan-2009
[10218]
Gotcha.
Henrik
27-Jan-2009
[10219]
whoops, only if the leading char IS a /.
[unknown: 5]
27-Jan-2009
[10220x2]
right, I understand.
I'm curious how Pekr, got word! do match though.
Pekr
27-Jan-2009
[10222]
Paul - as easy as parse [ / ] [word!] ? :-)
Mchean
27-Jan-2009
[10223]
line continuation doesn't work in the r3 console?
Henrik
27-Jan-2009
[10224]
there are some limitations compared to the r2 console.
Mchean
27-Jan-2009
[10225]
an open [ doesn't continue to next line? - just checking
Henrik
27-Jan-2009
[10226]
yes, correct. you can't paste code in the console.
Mchean
27-Jan-2009
[10227]
thx
sqlab
27-Jan-2009
[10228]
i just tried to download the new r3alpha.

my NOD32-antivirus guard identified it as a variant of Win32/Adware.Antivirus2008
Henrik
27-Jan-2009
[10229]
:-)
sqlab
27-Jan-2009
[10230]
that' s curious.
I can download with firefox without problems.
but with seamonkey it's no longer available.
Maarten
27-Jan-2009
[10231]
I know of no language that has this!  

evoke 'crash
Mchean
27-Jan-2009
[10232x2]
nice...
why settle for unintentional crashing
Henrik
27-Jan-2009
[10234x2]
>> ? evoke
USAGE:
        EVOKE chant

DESCRIPTION:
        Special guru meditations. (Not for beginners.)
        EVOKE is a native value.

ARGUMENTS:

        chant -- Single or block of words ('? to list) (word! block! integer!)
perhaps a single guaranteed way to provoke crashes to see how they 
are handled on different platforms.
[unknown: 5]
27-Jan-2009
[10236]
Pekr, i thought you were parsing the /R3/GUI as word!.  Ok, I misunderstood. 
 Thanks Pekr.
Maarten
27-Jan-2009
[10237]
I like that. This could eb a cult hit. Somebody quits your app, evoke 
crash. Wish for evoke 'reboot-os!!!
PeterWood
27-Jan-2009
[10238]
The RebDev Web Client seems to be broken :


*** RebDev Error: client is out of date ** Script Error: cause-error-here 
has no value ** Where: error ** Near: cause-error-here


I guess this is to do with the changes being made to the server to 
fix the "unicode" problem.
Will
27-Jan-2009
[10239]
is rebol.com going Cheyenne ?
BrianH
27-Jan-2009
[10240x2]
Nice trick that works in R2 and R3: If you put
    rebol []

before the code you would otherwise paste in the console and include 
that header in the copy, you can
    do clipboard://
to do the code :)
It doesn't mess up your console history either, as pasting in the 
console does.
Oldes
27-Jan-2009
[10242]
I'm using this one-liner function for it:
>> ?? drc
drc: func [][do read clipboard://]
BrianH
27-Jan-2009
[10243x4]
That doesn't need a rebol [] header, and is probably a good candidate 
for your %user.r.
Here's my %user.r function:

explore: func [

    "Open directory in the file manager (shell shortcut function)."

    'path [file! word! path! string! unset!] "Accepts %file, :variables, 
    and just words (as dirs)"
] [
    path: case [
        unset? :path [to-local-file what-dir]
        file? path [to-local-file path]
        string? path [path]
        true [to-local-file to-file path]
    ]

    call ajoin [{"} get-env "SystemRoot" {\explorer.exe" } mold path]
]
CALL is less capable (and less buggy) in R3, but CASE is more capable 
:)
CALL doesn't support block arguments or any options yet in R3, though 
you can workaround some of its limitations for now.
Pekr
28-Jan-2009
[10247x2]
One question to R3 chat. Was there any change, that enter now does 
not list new messages one each time?
If such functionality was removed, how do I simulate it? L does list 
of msg heading, lm lists msgs even with body. But all of them at 
once, not one in each press ?
Claude
28-Jan-2009
[10249x2]
hi,  i am very to play with R3 but  i don't find a way to do a round 
of a amount or decimal with a scale example i would like to 1/3 in 
a interest amount with 8 decimal . how a can do this with R3  ?  
the simplest way or the better way ?  thank of you all
i find this way => round/to (1 / 3/)   0.00000001
sqlab
28-Jan-2009
[10251]
round/to 1 / 3   0.00000001
Henrik
28-Jan-2009
[10252x2]
It's a known bug
sorry, I misread. (I read too fast these days) There is indeed a 
bug which causes certain roundings to be incorrect with the ROUND 
function, but it should not occur with the above example.
sqlab
28-Jan-2009
[10254]
Is there a reason why help displays infos about ports not in the 
same way as for objects ?
There seems just two minor changes needed
 
in dump-obj
>>    obj [object! port!]
instead of     
 <<   obj [object!]

and in help

>>        print either any [object? value  port? value] [print "" 
dump-obj value] [mold :value]
instead of 

<<       print either object? value [print "" dump-obj value] [mold 
:value]
Gregg
28-Jan-2009
[10255]
Like Oldes, I have a do-clip func in %user.r, along with a cc func 
to copy, vv to paste, and cdr to "change-dir to-rebol-file". Handy 
stuff.
TimW
28-Jan-2009
[10256]
Okay, so there's no GUI in this alpha(stated above)?  Also, why aren't 
the actions of buttons in blocks anymore?  That seems ridiculous.
Steeve
29-Jan-2009
[10257]
uh ? what do you mean ? 
>>load-gui
then
>> view [button "test" do [print "test"]]
TimW
29-Jan-2009
[10258]
Ah...I didn't know you could load the gui.  Thanks.  And the button 
action isn't in a block because you're executing the block with 'do. 
 I guess it's not that big of a deal, but it's annoying to me that 
view[button "test" print "test"] is also valid
Steeve
29-Jan-2009
[10259]
'do and 'print are valid actions usable in the dialect.

check the content of the guie/actions object to know all the authorized 
actions.
>> first guie/actions

== [self do browse run launch view alert close halt quit set of attach 
submit reset clear focus scroll print dump moved signal]
Henrik
29-Jan-2009
[10260]
oh, the GUI is there. I retract my previous statement. :-)
DideC
29-Jan-2009
[10261]
It's not really there, but it's not far away ;-)
Demo
 simply load it from the website.