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

World: r3wp

[!REBOL3 GUI]

Robert
25-Dec-2010
[4739]
+1 FACES?


What would a logic mean here? That there are faces? Well, it's a 
GUI thing... if than maybe FACE? could be ambigous.
Steeve
25-Dec-2010
[4740]
Btw, I vote to keep FACES?.

When i see ? in a word's name, i know it may be a boolean or a calculated 
value (actually a function).
If the context is not clear enough, I invoke HELP.

Actually, I would have choose the name CHILDS. It's more polymorphic, 
and it can apply on faces or gobs.
Anton
25-Dec-2010
[4741x2]
Ah damn, you exposed my true nature as a Dark Side human resources 
manager.
sorry, recruitment officer.
Steeve
25-Dec-2010
[4743]
:-
Anton
25-Dec-2010
[4744]
put that light-saber away, you're overreacting!
Steeve
25-Dec-2010
[4745]
my mistake, I cut my own smiley with my lightsaber
:-)
Anton
25-Dec-2010
[4746x2]
pyromaniac vandal.
Returning (with some effort) to serious consideration of your argument; 
I'm in agreement (how could I not), but I would like to point out 
that it's a bit like a slippery slide argument: if I accept to add 
just a few more characters (? -> -of) then I'm on the road to creating 
the API with the most unwieldy extra long function names as found 
in other languages (without the utility of Rebol contexts at their 
disposal).
Steeve
25-Dec-2010
[4748]
It was just a warning.
The Devil is in the details. 
-of

 could be the devil seed and give birth to abominations, like: get-faces-of-a-face
But I am conforted now ;-)
Anton
25-Dec-2010
[4749]
<Aha..! My evil plan worked..>
Izkata
25-Dec-2010
[4750x2]
Just throwing something out here (as I'm not actively involved in 
R3 and mostly lurk):  I see "-of" as a "what" or "what are" type 
of question, while "?" more like "what is" (and all the rest) type 
of question.
(does it) exist?
(what is the) length?
(what is the) size?
(when was it) modified?
vs
(what are the) faces-of
(what are the) values-of

Then of course, minimum-of and maximum-of break this idea:
(what is the) minimum-of
But this works just as well IMO:
(what is the) minimum?


So looking at that, I'd consider the "?" or "-of" question to not 
so much be based on logic values, but whether it returns a single 
value, or a list of values.
So, +1 for FACES-OF here
Steeve
25-Dec-2010
[4752]
What informs about a single value or a list is the use of plural 
in the name.
Izkata
25-Dec-2010
[4753]
I've always seen that as incidental, not the meaning, but I guess 
I can see how it works.
Ladislav
25-Dec-2010
[4754x2]
FACES? : FACES-OF = 5:6 currently, if I count it correctly
Correcting my overlooking: FACES? : FACES-OF = 5:9
Steeve
25-Dec-2010
[4756]
Not the topic, but this function does a strange control.
Ladislav
25-Dec-2010
[4757]
what do you mean?
Steeve
25-Dec-2010
[4758x2]
In the code, why does it need to check if the contained gobs have 
a consistent data/face/gob ?
It should be consistent at first, no ?
Ladislav
25-Dec-2010
[4760x3]
Anyway, for me, REBOL standard is still SUFFIX?, not SUFFIX-OF, since 
it is documented as the proper style, as well as used in the majority 
of cases, like Andreas noted.
In the code, why does it need to check if the contained gobs have 
a consistent data/face/gob ?

 - because we had problems with text-faces, which contain a face-less 
 gob, i.e. a gob for which gob/data is a face, which does not have 
 face/data = gob. This caused a cycle for faceless gobs.
I do not know who introduced those faceless gobs, does somebody know?
nve
25-Dec-2010
[4763]
I have two questions about R3 GUI : 
* do you have a demo script ? 

* do you have the same design has shown by Carl in march http://www.rebol.com/r3/docs/gui/guide.html
?
Ladislav
25-Dec-2010
[4764]
demos are available, just see above (Henrik mentioned how you get 
them)
Steeve
25-Dec-2010
[4765]
Ladislav, actually I don't see what you said in this function. I 
 only see that a gob and its gob/data/gob must be the same, which 
is rather curious
Ladislav
25-Dec-2010
[4766]
The design has been enhanced, the new doc is almost ready, will be 
made available on Tuesday, I think.
Steeve
25-Dec-2010
[4767]
faces?: funct [
    "Get a block of faces in a panel"
    face [object!]
] [
    face: face/gob
    result: make block! length? face
    repeat i length? face [
        sg: face/:i

        if same? sg sg/data/gob [append result sg/data]  ;   <<<< UH !?
    ]
    result
Ladislav
25-Dec-2010
[4768]
I  only see that a gob and its gob/data/gob must be the same

 - that is what I thought as well. But, aftter causing crashes, I 
 had to rewrite the FACES? function to make up for the "faceless" 
 gobs, as I mentioned.
Steeve
25-Dec-2010
[4769]
Ah, You're saying I have not the last version
Ladislav
25-Dec-2010
[4770x2]
So, I am asking Carl, whetherthe "faceless" gobs were his idea, or 
not.
No, Steeve, I am saying, that you do not have the simpler version 
you are proposing, since that version *was* causing crashes of the 
GUI.
Steeve
25-Dec-2010
[4772]
Ok but, this function does not resolve the issue, it's not checking 
if the inner gobs have a face.
Or I completly lost you point.
Ladislav
25-Dec-2010
[4773]
I hope, this will help you:

faceless?: func [
    {find out, whether a gob is faceless}
    gob [gob!]
][not same? gob/data/gob gob]
Pekr
25-Dec-2010
[4774]
Ladislav - as for docs - will you update rebol.com docs, or RMA's 
own docs? I mean - is this gui endorsed as an official version by 
Carl? I hope so, or the confusion will continu, unless Carl removes 
reference to old docs too ...
Steeve
25-Dec-2010
[4775x2]
To my mind a faceless gob may have its gob/data == none!
And even if it has an object , the gob property may not be here.
the faceless? function is not safe
I mean it will throw an error in my cases
Ladislav
25-Dec-2010
[4777]
Pekr, I still have to make the doc available for Carl as well as 
for you. (lots of changes made recently).
Pekr
25-Dec-2010
[4778]
I just mean if your docs will replace rebol.com wiki ones?
Ladislav
25-Dec-2010
[4779]
Steeve, the function is as safe as I need it to be. (the "standard" 
GUI needs to work)
Steeve
25-Dec-2010
[4780]
Ok ok
Ladislav
25-Dec-2010
[4781]
Pekr, I guess, that you are one step faster. That will not happen 
before Carl gets the doc.
Kaj
25-Dec-2010
[4782]
The? problem? with? painting-a? bike-shed? is? that? everyone? thinks? 
he? knows? the? right? colour?
xavier
25-Dec-2010
[4783x4]
hello.  I got to run the R3 gui and got some troubles : i use the 
r3-a110-3-1(1).exe and the r3-guihttp://94.145.78.91/files/r3/gui/r3-gui.r3
and run this : do %r3-gui.r3 and got this in return :
>> do %r3-gui.r3

Script: "R3 GUI - load and start" Version: $Id: $ Date: 9-Dec-2010/10:32:04+1:00

** access error: cannot open: shape reason: "module not found"

>> import %r3-gui.r3
** Script error: datatype assertion failed for: spec/version
** Where: assert -apply- make catch case -apply- apply import
** Near: assert/type [
    spec object!
    body block!
    mixins [o...

>>
** access error: cannot open: shape reason: "module not found"

>> import %r3-gui.r3
** Script error: datatype assertion failed for: spec/version
** Where: assert -apply- make catch case -apply- apply import
** Near: assert/type [
    spec object!
    body block!
    mixins [o...

>>
can anybody help me ?
Oldes
25-Dec-2010
[4787]
I think you don't have the R3 version with View. You can download 
it here: http://www.rm-asset.com/code/downloads/
BrianH
25-Dec-2010
[4788]
You need to use the R3 version with the graphics APIs included - 
recent RT releases have been core only. Try http://www.rm-asset.com/code/downloads/files/rma-r3-build.zip
(which I got from http://www.rm-asset.com/code/downloads/).