Why not Pascal / C instead BASIC?

Page 4/4
1 | 2 | 3 |

By hit9918

Prophet (2619)

hit9918's picture

16-08-2017, 23:17

the trees got jaggies
there is a paletted yjk mode. sky color can be used in any pixel, the tree would be round, with zero jaggies.

By PingPong

Prophet (2864)

PingPong's picture

17-08-2017, 01:41

Msxbasic is not comparable to. C or pascal

No structured programing
Subroutines not fuctions
Line numbers
All variables are GLOBAL that combined with the only two first letter are significant plus no declaration is a kind of bomb allowing the generaton of the most subtle bugs
No modularization of code
Stupid type postfix for variables a% different from a!
Until you defint all vars are real
Goto is the only way to do loops
Interpreted slow

To stay with basic we need a more modern implementation and a compiler

By Grauw

Enlighted (6020)

Grauw's picture

17-08-2017, 09:01

1. Goto only way to do loops? For / next exists...
2. Basic-kun compiler is fast, all Kai games were made with it.
3. NestorPreTer could be called a more modern implementation, it removes a number of the above limitations.

Just some amendments... not saying Basic is the be-all-end-all (or Pascal).

By DarkSchneider

Champion (511)

DarkSchneider's picture

17-08-2017, 11:25

BASIC was a great way for introducing amateurs/kids. But at long term it has become a cancer for MSX development. I haven't seen more wasted efforts and resources giving EVERYTHING to BASIC (libs, players, etc.) and nothing to other languages, very much better long.

By PingPong

Prophet (2864)

PingPong's picture

17-08-2017, 12:41

Grauw wrote:

1. Goto only way to do loops? For / next exists...

2. Basic-kun compiler is fast, all Kai games were made with it.
3. NestorPreTer could be called a more modern implementation, it removes a number of the above limitations.

Just some amendments... not saying Basic is the be-all-end-all (or Pascal).

1. At least gwbasic allowed while wend. Msxbasic no.
2. And have its limitations. Memory , some instructions does not work,strange float math
and cannot be used for a stand alone exec
3. at the root we have always the same thing and limits

We need a more modern version

By PingPong

Prophet (2864)

PingPong's picture

17-08-2017, 13:08

Time ago someone posted about a new basic compiler, developed for zx spectrum but ported to msx also. I do not remember much about but it was a good project. Basic aficionados should consider this . It is not too much complex providing basic routines or wrap the bios for usual operations like vdp psg slot management etc

Page 4/4
1 | 2 | 3 |
My MSX profile