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

Henrik
27-Nov-2005
[1336x2]
Try this:

view/new layout [button 233x233]

load read-net http://www.userfriendly.org/cartoons/archives/97nov/uf13b471.gif

Now try this...:

view/new layout [button 233x232]

load read-net http://www.userfriendly.org/cartoons/archives/97nov/uf13b471.gif
oh well.... that button size may vary in needed size, because it 
did crash in both cases now in the console
Geomol
27-Nov-2005
[1338]
Doesn't crash here. Using REBOL/View 1.3.51.3.1 28-Oct-2005 Core 
2.7.0
Henrik
27-Nov-2005
[1339x4]
crashes 100% reliably with 1.3.1 under windows
try making a very big button
doesn't crash under 1.3.61 though
nope... must've been fixed somehow
sqlab
28-Nov-2005
[1343]
Crashes in both cases with view 1.3.61.
But my problem is not connected to View. I want a stable core.
Gregg
28-Nov-2005
[1344]
Can't dupe the crash here under 1.3.61. Can you provide more system 
details?
Alan
28-Nov-2005
[1345]
did not crash but did lock up had 2 ctrl-alt-del to end,using View/pro 
1.3.1.3.1
sqlab
28-Nov-2005
[1346x2]
It crashes with Windows XP or Win2000 server
e.g 

Microsoft Windows XP Professional
Version	5.1.2600 Service Pack 2 Build 2600

Prozessors	x86 Family 15 Model 2 Stepping 9 GenuineIntel ~2807 Mhz
Memory from 512 to 1024 MB

Windows 2000 Server
Version 5.0.2196 Service Pack 4 Build 2195

2 Processors X86 Family 15 Model 2 Stepping 7 Genuine Intel ~2399MHz

a.s.o.
the most simple client causing the receiving sever to crash

forever [
	con: open/binary/direct/no-wait tcp://receiver:13011
	insert con "a"
	wait con
	if not copy con [break]
	close con
]
sqlab
1-Dec-2005
[1348]
what do you think about

>> parse "" [to 5 (print 1)]
1
== true
Pekr
1-Dec-2005
[1349x2]
:-)
can't decode it s meaning:-)
sqlab
1-Dec-2005
[1351]
no secret meaning, but i think, this is a bug.
Pekr
1-Dec-2005
[1352]
what does to 5 mean in this case when you parse string? To fifth 
char?
Chris
1-Dec-2005
[1353x2]
Five times the next rule...
>> parse "aaaaa" [5 #"a"]
== true
Pekr
1-Dec-2005
[1355]
but there is 'to in there ...
Chris
1-Dec-2005
[1356x2]
Ah right --[ to 5 ]-- doesn't work, any more than --[ to some ]-- 
or --[ to any ]-- would.
And integers are specificly used as part of the parse rule:
>> parse [5][5]
== false
Pekr
1-Dec-2005
[1358]
is the last case correct returning false?
sqlab
1-Dec-2005
[1359]
parse "12345" [copy a to 2 copy b to 3 copy c to 4 copy d to 5 copy 
e to 6]
== true
>> a
== "1"
>> b
== "2"
>> c
== "3"
>> d
== "4"
>> e
== "5"
Chris
1-Dec-2005
[1360x2]
>> parse "abcde" [to 4 #"e"]
== false
>> parse "abcde" [to 5 #"e"]
== true
Interesting...
Pekr
1-Dec-2005
[1362x3]
copy e to 6? Should be false imo!
that is imo bug :-)
hmm, so it means to fifth char?
Chris
1-Dec-2005
[1365]
Unless it is to an index position...
Pekr
1-Dec-2005
[1366x2]
from sqlabs example it seems to be index position, otherwise if it 
counted num of chars, it would not start from the beginning of the 
string each time ...
so 6 in his example is equal tail ... index? tail "abcde" = 6
Chris
1-Dec-2005
[1368x4]
>> parse "abcde" [to 6 mk: (probe index? mk) to 1 mk: (probe head? 
mk) to 6]
6
true
== true
This may be painfully obvious, I'd never noticed it before...
I would say that sqlab's example was a bug, except that it is consistent 
with:
>> skip "" 5
== ""
>> head? skip "" 5
== true
Geomol
1-Dec-2005
[1372]
>> parse "54321" [to 2 mk: (print mk)]
4321
== false
>> parse "54321" [to "2" mk: (print mk)]
21
== false

I didn't know that either. Good to learn something new. :-)
Henrik
1-Dec-2005
[1373x2]
>> parse "54321" [to 5 mk: (print mk)]
1
== false
>> parse "54321" [to 4 mk: (print mk)]
21
== false
>> parse "54321" [to 3 mk: (print mk)]
321
== false
>> parse "54321" [to 2 mk: (print mk)]
4321
== false
>> parse "54321" [to 1 mk: (print mk)]
54321
== false
that would be the position in the string, not the actual digit in 
the string...
Geomol
1-Dec-2005
[1375x4]
Exactly!
Also works with thru:
>> parse "abcde" [to 2 mk: (print mk)]
bcde
== false
>> parse "abcde" [thru 2 mk: (print mk)]
cde
== false
Why do we write this under "RAMBO"? :-) It's not a bug!
Put it in the Wiki.
Chris
1-Dec-2005
[1379]
I think the original point is -- parse "" [to 5] -- perhaps should 
not return true.
Pekr
1-Dec-2005
[1380]
Chris - maybe it should, if you look at how skip "" 5 works. 'skip 
operation here is simply kind of doing "nothing" - trying to jump, 
but already at the end, so it jumps nowhere :-)
sqlab
1-Dec-2005
[1381]
Maybe my point is better explained with this example

 parse "12345" [to 6  copy a to 10 (print 1)]
1
== true

If  to 6 parses all positions, I do not expect that after the tail 
to 10 gives true
Volker
1-Dec-2005
[1382x2]
IMHO that is a bug. 
!> parse "123" [5 skip (print 1)]
== false
!> parse "123" [to 5 (print 1)]      
1
== true
skip makes more sense
Anton
2-Dec-2005
[1384x2]
[to 5] seems to be jumping off the end of the input.
event/key bugs with View 1.3.60 and 1.3.61