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

World: r3wp

[RAMBO] The REBOL bug and enhancement database

Maxim
8-Nov-2006
[1972]
I think this would be a very nice session/panel for devcon 2007 with 
Carl and Gurus as panel members and any one able to assist and give 
insight.
Anton
8-Nov-2006
[1973x7]
Ladislav, yes, equality is an area lacking clear definition in rebol. 
It doesn't seem to slow day-to-day programming down much, because 
most of the day-to-day requirements were implemented first, but when 
it comes to reflective code it makes everything hazy.
WRT the rambo #3518, I think these just expose "not yet implemented" 
equalities.
In practice, a programmer would notice the failed equality, then 
convert to a datatype which supports the equality operation.
eg:
>> (as-string http://www.rebol.com) = "http://www.rebol.com"
== true
Bug: The size of the H1 is different in these two examples:
view layout/offset [h1 "query:"] 770x50
view layout/offset [h1 "query:"] 760x50
Anyone confirm ? I think it is maybe something to do with H1 and 
size-text.
Maxim
9-Nov-2006
[1980]
hum I don't seem to see any different.. but how would offseting the 
window change the content?
Anton
9-Nov-2006
[1981x2]
Do you see "query:" on one line in both cases ?
Ah.. it's a bug in H1 init.
Maxim
9-Nov-2006
[1983]
the bug I have is that its vertical... in both examples...
Anton
9-Nov-2006
[1984x2]
Compare these four examples:
view layout [h1 "Hello!"]
view layout/offset [h1 "Hello!"] 770x50
view layout/offset [h1 "Hello!"] 760x50
view layout/offset [h1 "Hello!"] 1076x50
Maxim
9-Nov-2006
[1986]
yep, using the layout offset is screwy !
Anton
9-Nov-2006
[1987x3]
print mold svv/vid-styles/H1/init
[
	if :action [feel: svvf/hot saved-area: true]

 if all [not flag-face? self as-is string? text] [trim/lines text]
	if none? text [text: copy ""]
	change font/colors font/color
	if none? size [size: -1x-1]
	xy: size
	if any [size/x < 0 size/y < 0] [
		state: max 1x1 pane-size * 9 / 10 - offset
		if size/x < 0 [size/x: state/x]
		if size/y < 0 [size/y: state/y]
		size: (size-text self) + (edge-size? self)

  + (to-pair all [para (to-pair para/margin) + to-pair para/origin])
	]
	if xy/x > 0 [size/x: xy/x]
	if xy/y > 0 [size/y: xy/y]
]
There you can see state is calculated from PANE-SIZE. There must 
be the problem I think.
Maxim
9-Nov-2006
[1990]
its possible pane-size is 0x0 which would make the text too small 
to fit horizontally... just thinking out loud here...
Anton
9-Nov-2006
[1991]
I'll have to continue this later - time for some exercise...
Maxim
9-Nov-2006
[1992]
its seems to be the same for all text label styles.. like text vtext, 
etc... I guess they are all just styles from the same core face.
Anton
9-Nov-2006
[1993x5]
You can see the inheritance chain like this:
>> svv/vid-styles/H1/style
== BODY
>> svv/vid-styles/BODY/style
== TEXT
>> svv/vid-styles/TEXT/style
== VTEXT
>> svv/vid-styles/VTEXT/style
== BASE-TEXT
>> svv/vid-styles/BASE-TEXT/style
== FACE
>> svv/vid-styles/FACE/style
== none
Hence FACE -> BASE-TEXT -> VTEXT -> TEXT -> BODY -> H1
Looking in LAYOUT we see this piece of code:
    new-face/size: pane-size: any [
        all [size pane-size] 
        new-face/size 
        system/view/screen-face/size - (2 * new-face/offset)
    ]
There we can see that pane-size shrinks to 0x0 as new-face/offset 
approaches the middle of the screen. It can even go negative.
Anyone know what the purpose of that calculation is ?
It has been around since at least View 1.2.1
Maxim
9-Nov-2006
[1998]
I think its just flawed logic.
Anton
9-Nov-2006
[1999x2]
I'll search each style's molded init that mentions "pane-size".
Obviously, but it was written for a reason. What was that reason.
Maxim
9-Nov-2006
[2001x3]
my guess is that it was supposed to increas a paren't size based 
on children offset and size...
so if you position your face far off, the pane ends up larger... 
but for the top level pane this does not work, since all it does 
is move the window... this is all pretty strange.
(again, just thinking out loud.. I am deep in my head resolving a 
get_username OS call, to get proper logon user on windows) hehe
Anton
9-Nov-2006
[2004]
Most styles have not much to do with pane-size, but there's a whole 
branch hanging off BASE-TEXT which deal with pane-size in exactly 
the same way.

BACKDROP and BACKTILE are in a separate category, they just set their 
size to pane-size at the end of their INIT.
Henrik
14-Nov-2006
[2005]
continuing from View: Since you can opt not to install Rebol/View 
in Windows, how about a no-file-pollution option, where REBOL itself 
will never create dirs or files, like the public dir?
Anton
14-Nov-2006
[2006]
I like the way you're thinking.
Henrik
14-Nov-2006
[2007]
rambo'ed
Maxim
14-Nov-2006
[2008x3]
I'd like there to be a no install version of rebol view.
a version which doesn't even ask, does not store any registry to 
remember anything and which actually looks in the directory from 
which rebol.exe is launched to find any config files... without actually 
creating them itself...
I guess the SDK versions are like this.. but they should be made 
available at large.
Pekr
14-Nov-2006
[2011x2]
Maxim - that is a lost battle! Just google some of my maillist rants 
- I was faiting for reverse scenario for years, back then, when Holger 
was still with RT. View's dependency on registry, and install process, 
is what I find obtrusive
RT's opinion, and probably valid though, was, that majority of users 
do want system friendly install process ...
Maxim
14-Nov-2006
[2013]
yes... but any developper or techie hates this.  especially for a 
development platform where you have to deploy...
Gabriele
14-Nov-2006
[2014]
if you have to deploy, use the sdk :)
Henrik
19-Nov-2006
[2015x2]
(continuing from View) Funny, Anton I got the standard Windows crash 
requester the first time, but the new one the second time.
actually:

>> to-vector "1"

old style crash

>> to-vector "x"

new style crash! :-)
Anton
19-Nov-2006
[2017]
My console just disappears with the first one.
Robert
19-Nov-2006
[2018]
This one worked before:

REBOL/View 2.7.0.3.1 18-Nov-2006 Core 2.6.3
Copyright 2000-2005 REBOL Technologies.  All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
>> make list! 0
** Script Error: Cannot use make on datatype! value
** Where: halt-view
** Near: make list! 0
>
Gabriele
19-Nov-2006
[2019]
looks like list! and hash! don't work.
Pekr
19-Nov-2006
[2020x2]
were there so deep changes to kernel, that those already working 
things don't work?
Beginning of the corresponding blog raised question, if it is worth 
to do so for "old" branch. I really see it as unneded, if the emphasis 
on the future is clear - R3.