IMPORT - Small request

Previous topic - Next topic

bigsofty

Can we have the BOOL type added please?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

Well yes and no, it can be any size, from a byte upwards but more importantly if its defined in the header as a BOOL, you'll get redeclaration errors if you swap in an INT in the IMPORT command without changing the original headers to match.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

in WIN32 API BOOL is just "int", so write that instead of BOOL and you're safe.
I think about implementing AS double/float/int/unsigned int/char/short, though. It would really help when you have e.g. an iPhone program but want double accuracy, or a Win32 program and want floats to save memory.