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

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

jack-ort
11-Apr-2011
[4205]
Hello Ladislav!  That is great news regarding R3-GUI!


Re. BrianH's examples, I read those as specific to the R3 TRIM function, 
so I assumed his other comment referred to some alternative approach. 
 Obviously I have much to learn.  Thank you!
Ladislav
11-Apr-2011
[4206]
Alternative approach is certainly possible, but the usage of the 
TRIM function looks quite comfortable, I guess.
jack-ort
11-Apr-2011
[4207]
But only in R3, correct?
Ladislav
11-Apr-2011
[4208x3]
Certainly not, this approach (not using the Trim function, though, 
can be emulated in R2
It is possible to define a REBOL function doing that
For example, using the approach Henrik outlined above.
BrianH
11-Apr-2011
[4211x2]
I meant creating a new object from scratch, not based on a direct 
prototype.

For example:
>> x: make object! [a: 1 b: 2 c: 3]
== make object! [
    a: 1
    b: 2
    c: 3
]

>> y: make x [d: 4]  ; creating based on a direct prototype:
== make object! [
    a: 1
    b: 2
    c: 3
    d: 4
]


>> z: make object! head remove/part find body-of x 'b 2  ; making 
based on the body of x, but not directly on x
== make object! [
    a: 1
    c: 3
]
Those will work in R2 as well, and the latter (z) is how you can 
make new objects based on old objects, but with removed fields. You 
can't make an object with fewer fields by direct prototyping, and 
you can't remove fields from existing objects.
jack-ort
11-Apr-2011
[4213]
Thanks to both Ladislav and Brian for taking the time to make that 
clear!
jack-ort
12-Apr-2011
[4214]
Hello again!  Cannot see how to make BrianH's example work in REBOL/View 
2.7.8; hungup on how to FIND a set-word:

>> x
>> probe x
make object! [
    a: 1
    b: 2
    c: 3
]
>> z: make object! head remove/part find body-of x 'b 2

** Script Error: head expected series argument of type: series port
** Where: halt-view
** Near: z: make object! head remove/part
>> find body-of x 'b
== none
>> body-of x
== [a: 1 b: 2 c: 3]
>> find body-of x 'b:
== none
Sunanda
12-Apr-2011
[4215]
Brian's code uses an R3-ism: 'body-of.
Equivalent R2 code looks like this:

     z: make object!  head remove/part find third x to-set-word 'b 2
jack-ort
12-Apr-2011
[4216]
Thanks Sunanda!  2.7.8 has "body-of"; now I know about using third 
of an object too!  What I was missing was the "to-set-word" - now 
I am off and running again.
BrianH
12-Apr-2011
[4217]
Sunanda, BODY-OF was backported to R2 in 2.7.7 :)
GrahamC
12-Apr-2011
[4218]
Brian .. what was ported is unclear to most people
BrianH
12-Apr-2011
[4219x5]
The real R3ism was the FIND call, unfortunately.
>> body-of context [a: 1 b: 2 c: 3]
== [a: 1 b: 2 c: 3]
>> find body-of context [a: 1 b: 2 c: 3] 'b
== none
>> find body-of context [a: 1 b: 2 c: 3] [b:]
== [b: 2 c: 3]
In R3, the first FIND call would have worked too.
I can't backport the FIND changes in R3 without breaking compatibility, 
so it's going to be a standing difference in the future.
Jack, it is not a good idea to use the ordinal reflectors (third 
object and such) unless you need to run on an old version of R2 (pre-2.7.7 
with R2/Forward not loaded). It makes your code harder to read, and 
less forwards compatible with R3.
In R3 the ordinal reflectors were deliberately removed for security 
purposes (mostly sandboxing).
jack-ort
12-Apr-2011
[4224]
Thanks Brian!  Duly noted.  If R3 was at least beta, I'd make the 
switch w/o looking back.
Geomol
17-Apr-2011
[4225]
New people should check group "Private Groups" for groups, they might 
be interested in to join. And then just ask to be joined, and it 
will happen!
JosDuchIt
22-May-2011
[4226]
Hello , I am new, just testing this inteface.
Henrik
22-May-2011
[4227]
welcome!
JosDuchIt
22-May-2011
[4228]
How can i write a message larger than one line?
Henrik
22-May-2011
[4229]
Click the "pencil" in the toolbar above the write line.
JosDuchIt
22-May-2011
[4230]
Thanks

I am an Amiga OS4.1 user, have had some contacts with Rebol when 
it first started up on this "mother" pmlatform and am very happy 
Reboll3 is cominbg back to it.

Any info on when View will be available ? Or can an older version 
of View be used with R3?
Henrik
22-May-2011
[4231]
I don't think it can be used. It will probably be a while before 
the Amiga version resumes, as Carl, the main developer, is taking 
a break to work on other projects. We need some more development 
on the core of R3 before it can continue.
JosDuchIt
22-May-2011
[4232x2]
Again about this interface then
Can i use a bigger font?

I can't reach the resize button to reduce the window somewhatt. How 
can this be done?

Is it possible to do a search in a group or the whole of ta world?
Henrik
22-May-2011
[4234x2]
There is an "aA" button next to the "pencil" button, but it varies 
with platform whether it works.
Are you using AltME on AmigaOS4.1?
JosDuchIt
22-May-2011
[4236]
No there is no AltMe version to download for AOS i am using my wife'sPC

The aA button works fine. I thought it would only affect selected 
text.
Henrik
22-May-2011
[4237]
ok, if the window is too big, you can probably right click the task 
bar icon for the program and select "Maximize".
JosDuchIt
22-May-2011
[4238]
Ther is no visible effect.

When moving the window around, it seems to come back to its position.

At least i have 3 empty lines to start a message with now. lI find 
it sore on the eyes though when typing messages lionger than 3 lines
Remember the search question?
Henrik
22-May-2011
[4239x2]
You can drag the write line bigger by the little ridge that sits 
above the buttonbar, if that helps.
Searching: Click the magnifying glass in the top right corner. If 
you find the message found during search is too old for display, 
click the Home button and Settings and increase the message limit.
JosDuchIt
22-May-2011
[4241]
Dragging the little white ridge allowed me to have 3 lblank lines 
visible gto start with. No setting to have a larger number of empty 
lines?

Searching is OK, thanks; I did discover the help info for the other 
buttons; Nice too
Henrik
22-May-2011
[4242]
I don't think there is any setting for storing the number of empty 
lines at program start.
JosDuchIt
22-May-2011
[4243]
I have tried to create an own Altme World., without succes. Th problem 
is password related.
GrahamC
22-May-2011
[4244]
Perhaps you're using an existing world name?
JosDuchIt
22-May-2011
[4245x2]
Everytime i change the Master's password from "pass" to a more robust 
password, i am not able any more to vist the newly created World.

I think i followed the  AltMe guidelines and tried sequentially new 
worlds till i got a message that  i had reached a creation limit.

I did sent to AltMe a message asking to delete those failed worlds 
and explaining as here, what happened.Till now no answer;
Any idea what i am doing wrong?
I don't think i am using an existing name (used sevferall) aand the 
server confirmed that the names were free
GrahamC
22-May-2011
[4247]
don't know tthen
JosDuchIt
22-May-2011
[4248]
Next question then. How do i get tot the first messages of a group?
GrahamC
22-May-2011
[4249x3]
each client syncs on connection to download all the messages ... 
which could take quite a while
to see the first message you have to either use a 3rd party message 
browser ... or set your messages to a high number eg. 10,000 but 
that will slow everything down.
In settings I have 1000 messages per group
JosDuchIt
22-May-2011
[4252]
Seems i have a settings of 800
Looks OK to me.    
What 3d party browsers do exist?
GrahamC
22-May-2011
[4253x2]
several people have written them .. check rebol.org
DideC wrote one