World: r3wp
[Rebol School] Rebol School
older newer | first last |
Janko 18-Apr-2010 [3145x3] | I tried including many mezz-* also mezz-netset.r but same message |
I mean do-ing | |
I also do-ed all prot-* that were in prot.r with no effect? does this have something to do with licences?? Because word set-net is there but it just messages this. And set-net is in all free versions of rebol (and hopefully you can send email from them all along) so I am quite confused. | |
Maxim 18-Apr-2010 [3148] | are you doing set-net within user.r or in your script? |
Janko 18-Apr-2010 [3149x3] | in my script (or in command line) |
is there a difference .. I haven't ever yet user user.r .. I will try. | |
hm.. petr got the same message in user.r if I understood him correctly. | |
Pekr 18-Apr-2010 [3152x2] | yes, correct. Just right after the start of the intrepreter .... |
other kernels in SDK don't show this behaviour ... | |
Ladislav 19-Apr-2010 [3154x4] | Change/part for the n-th time. Did anybody expect this? >> tgt: "123456789" == "123456789" >> src: at tgt 5 == "56789" >> change/part tgt src 1 == "23456789" >> tgt == "5678923456789" |
(R2 and R3 are compatible in this) | |
sorry, this is OK, actually | |
nevertheless, to all that think, that copying/collecting is slower than moving a character at a time, my result is, that the change x copy/part y z expression is about 2.8 times faster on my example x y z, than a cycle moving a character at a time. | |
BrianH 19-Apr-2010 [3158] | Yes, the internal native loop inside CHANGE is faster than a loop run in mezzanine code, even if the loop function is itself a native. |
GiuseppeC 4-May-2010 [3159] | Just a question: is there a way to let external fuctions (outside REBOL) be associated to a rebol word ? Could this fuction access REBOL values via some API ? |
Ladislav 4-May-2010 [3160] | Yes, Giuseppe, in R2 you have struct!s and routines, in R3 you have extensions. |
PeterWood 25-May-2010 [3161] | How do you create a face with VID that has a transparent backdrop? |
Gregg 25-May-2010 [3162] | Give it a color of NONE. (assuming what you need is that simple) |
PeterWood 25-May-2010 [3163] | I' m probably doing something wrong, when I use a color of none I get a gray backdrop not a transparent one. I'm trying to answer one of RebolTutorials questions. Here's the code: I' m probably doing something wrong, when I use a color of none I get a gray backdrop not a transparent one. I'm trying to answer one of RebolTutorials questions. Here's the code: >> b-t: layout [ [ backdrop [color: none] [ text "line 1" red [ text "line 2" blue [ ] >> y-b: layout [ [ b-b: box white 728x90 effect [gradient 0x1 sky] [ ] >> b-t/offset: 0x0 == 0x0 >> b-b/pane: b-t >> view y-b |
Steeve 25-May-2010 [3164x3] | IIRC, backdrop is a style, so it creates a sub-pane in the layout. |
b-t/color: none | |
Or to do it for all of your layouts: system/view/vid/vid-face/color: none | |
PeterWood 25-May-2010 [3167] | Thanks, Gregg and Steeve. |
Anton 28-May-2010 [3168] | PeterWood, you missed the WITH keyword before [color: none] in your layout above, so you mistakenly set the action for the backdrop. |
PeterWood 28-May-2010 [3169] | Thanks for pointing that out Anton. I a real beginner when it comes to view. When I added with I didn't get a transparent face but I did when I triued Steeve's suggestion to set the color of the face to none. |
Anton 28-May-2010 [3170] | Near the top of the source of LAYOUT you can see that the face (which is typically to become a window face) is created from VID-FACE (the very same one at system/view/vid/vid-face). |
florin 29-May-2010 [3171] | Any good example of using "range"? I cannot find a single example. For instance, the copy function can take a range [number port series pair]. I don't know how to specify the range. In the Core tutorial, to copy a range, we need to move to the particular position first and then do the copy. Fine. What is this 'range' about and how do we say it? The following don't work: 3-5, [35], 35, 3:5, 3x5. Thanks. |
Henrik 29-May-2010 [3172] | a: [a b c d] copy/part a 2 == [a b] copy/part next a 2 == [b c] |
florin 29-May-2010 [3173] | That was quick! Yet still don't get the 'range' part. I do understand the copy/part a 2, and the second copy/part next a 2. Maybe I don't understand how to interpret the API docs? |
Henrik 29-May-2010 [3174] | can you post a URL to what you're reading? |
florin 29-May-2010 [3175x3] | I am reading the documentation that comes with the REBOL Word Browser (Dictionary) when I downloaded rebol. (2.7). |
I think I get it. I find this a misnomer. It is not a range, it should be "ending position". It is a range because the starting position is implied. (?). | |
I guess my brains needs to adapt to the rebol world. | |
Henrik 29-May-2010 [3178] | yes, range is always from the current index of a series to the specified index |
florin 29-May-2010 [3179] | But why in the Word Browser, they use the term range? When I read that, I understand that I need to provide to numbers specifying the start and end position of the range. Do I make sense to you? |
Henrik 29-May-2010 [3180x3] | start positions are usually the current position in a series, when using series functions in REBOL. |
I think you want range to mean two separate absolute numbers, but the start position has already been specified. | |
you can also say that it's an end-position. | |
florin 29-May-2010 [3183x2] | Correct, and this is why I now understand. As a new comer to rebol, I just find that the Word Browser should not use the term 'range' but something else, like 'position' in its definition. Anyways, you answered my question that unlocks the rest of the docs for me in this regards. |
Thanks. | |
Henrik 29-May-2010 [3185] | A trick that you won't see from the word browser: here: [a b c d] there: at here 3 copy/part here there == [a b] |
florin 29-May-2010 [3186x3] | I think I saw it differently with a file example: |
file: %myfile.txt copy/part file find file "." | |
How do you add line brakes to this altme textbox? CTRL+ENTER does not work. | |
Henrik 29-May-2010 [3189x2] | yes, that's similar |
click the pencil icon for multiline input (it really needs to be default) | |
florin 29-May-2010 [3191x2] | Oh, my the rebol echosystem has a lot of little things work unexpected. |
Yes, and this is where the Word Browser makes sense when it says that the 'range' can take number, series, port, pair etc. How does it work with a pair? When the copy value is a pair itself? | |
Henrik 29-May-2010 [3193] | that would be on copying parts of an image |
florin 29-May-2010 [3194] | I'm not that far :). Are you having fun with rebol or is it part of your job? I find it appealing though off putting at first. |
older newer | first last |