Important Fixes & Breaking Changes
Before this page you should know what the chapter means by a fixed bug (Differences from the original).
The BB2 C port fixes the bugs of Blitz Basic 2 one at a time. Nearly all of these fixes only matter to a program that ran into the bug: it crashed, hung or got a wrong result, and with the port it does not. A few fixes, though, can change a program that worked. This page lists every fixed bug in one table, so that you can see which fixes can concern your sources without reading all the pages of fixed bugs.
These fixes can change a program that ran correctly with Blitz Basic 2, and they are the ones an ordinary program meets most easily. Check your sources for the commands they name.
=<is less-or-equal, the same as<=; the original compiled it as “not equal” without a message. (#9)CustomSpritescounts itsCCOffsetin copper instructions, as documented; the original took it 16 times too large. (#324)Boxadds theBitMapOriginorigin once, likeLineandBoxf; the original added it twice. (#391)RenderPolyafterRenderToBitmap b,ddraws on bitmapbwithdas the dither pattern, as documented; the original swapped the two. (#421)LoadShaperefuses a picture taller than 1023 rows or wider than 992 pixels (“Can’t Read/Write Shapes File”), also without runtime error checking; the original loaded it with a wrapped blit size. (#1046)CustomColorswith athru256flagof 0 acts as if the flag were left out; the original treated 0 as 1. (#951)
These are only the highlights. All 107 fixes that can change such a program are at the top of the table below, at levels 1 and 2; its level filter can show one of the two levels alone.
The five levels
Every fix has one of five levels. The level answers one question: can a program that ran correctly with Blitz Basic 2 behave differently with the port, and how hard is that to notice before it happens? A new runtime error ranks above a new compile error, since the compiler shows the one at once and the other only comes when the program runs into it.
- 1, changes results. A program that ran correctly with the original can compute, print, draw or write something else, take another way through its code, or stop. Check your sources for the commands named.
- 2, noticeable change. A program that ran correctly with the original still does its job, but something you may notice differs, such as the sound, a detail of the display or the events on a tape. Check whether your program needs adapting.
- 3, new runtime error. A program that went wrong with the original stops with a runtime error instead, in most cases only with runtime error checking.
- 4, new compile error. The compiler refuses a source that the original accepted, mostly with a wrong or random result.
- 5, fix without side effects. A crash, hang, leak or wrong result is fixed. A program that never met the bug behaves as before.
A fix of level 3 or 4 is also described, with an example and what to change in a source, on the page Sources that compile differently.
All fixes
Each row names the topic, the library or the part of Blitz Basic 2 that is concerned (the compiler or the editor TED), and the commands. The sentence of a row leads to its description on the pages of fixed bugs, and the issue to its details and its test on GitHub. The table starts sorted by level and, inside a level, by issue number. With JavaScript, the column headers sort the table and the two lists above it show only one level or one topic.