GLBasic forum

Feature request => IDE/Syntax => Topic started by: bigsofty on 2010-Apr-27

Title: IMPORT - Small request
Post by: bigsofty on 2010-Apr-27
Can we have the BOOL type added please?
Title: Re: IMPORT - Small request
Post by: bigsofty on 2010-Apr-27
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.
Title: Re: IMPORT - Small request
Post by: Kitty Hello on 2010-Apr-29
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.