|
Post by tenochtitlanuk on Jul 1, 2022 17:40:10 GMT -5
LB5 v3.53 on Linux I tried to convert my Piet programs to LB5 as an exercise to get to grips with the new syntax, and found a number of bugs. -No way to save an image?? getimage not implemented?
-The most serious one seems to be triggered in a recursive count of neighbours, and gives a crash of LB5.... may be my fault? It's many lines of code and the original LB4 version was fine. More minor ones-
-afterlast$ not implemented? 'set' now creates squares not circles for sizes >1 printing to text editor fails in following code. 'Unexpected code at end of line....' if you un-Rem the line shown.
insert code here nomainwin
WindowWidth =120 WindowHeight =180
texteditor #w.te, 10, 4, 100, 40 graphicbox #w.g, 10, 45, 80, 80
open "Demo" for window as #w
#w "trapclose quit"
#w.g "down"
for i =76 to 0 step -4 if ( i mod 8) =0 then #w.g color( "black") else #w.g color( "white") #w.g size( i) #w.g set( 40, 40) ' in LB4 set creates a circular blob not a rectangle next i
trm$ ="77" V =val( trm$) #w.te "J"; #w.te "F"; '#w.te chr$( V); ' this line gives 'unexpected code at end of line wait
sub quit h$ close #h$ 'end end sub
|
|
|
Post by Carl Gundel on Sept 21, 2022 9:49:59 GMT -5
LB5 v3.53 on Linux -The most serious one seems to be triggered in a recursive count of neighbours, and gives a crash of LB5.... may be my fault? It's many lines of code and the original LB4 version was fine. Do you have any more information about this? It is. Not sure what's up with that. I've changed the default to round pixels. Now you can do this if you want square ones #g pixelshape("square") 'or "round" to switch back to round. The cross platform circle code doesn't produce precisely the same style of circle drawing. A compile bug, not really an error printing because the program doesn't finish compiling. Thanks for the bug reports.
|
|
|
Post by Brandon Parker on Sept 21, 2022 18:41:13 GMT -5
AfterLast$() appears to be case-sensitive. The code below works as long as you use all lower-case letters.
var$ = "Hello, World!"
Print "Goodbye";afterlast$(var$, "Hello")
{:0)
Brandon Parker
|
|
|
Post by Carl Gundel on Sept 21, 2022 19:00:24 GMT -5
AfterLast$() appears to be case-sensitive. The code below works as long as you use all lower-case letters. var$ = "Hello, World!"
Print "Goodbye";afterlast$(var$, "Hello") LOL! Good catch! Update: Fixed in build 354.
|
|
|
Post by metro on Sept 22, 2022 7:42:58 GMT -5
AfterLast$() appears to be case-sensitive. The code below works as long as you use all lower-case letters. var$ = "Hello, World!"
Print "Goodbye";afterlast$(var$, "Hello") LOL! Good catch! Update: Fixed in build 354. just over two years ago
|
|
|
Post by Carl Gundel on Sept 22, 2022 8:35:31 GMT -5
LOL! Good catch! Update: Fixed in build 354. just over two years ago
Oh, look at that. Sorry, somehow that went under my radar. :/
|
|