viewtopic.php?f=2&p=283456#p283456
Indeed I have. Over a decade ago before finding FreeBASIC I bought a few books on programming games in C++. Two came with a dvd with the DevC++ IDE that the books used and one with MASM. All their examples worked great. Five years later after playing with FreeBASIC I thought I would go back and do some C++ programming. None of the source code would compile (I was using the CODE::BLOCKS IDE, no idea what c++ compiler came with it). So the books and DVD examples were now rubbish so I threw them out and returned to FreeBASIC.jj2007 wrote:Ever tried to compile a C/C++ snippet found on the web that was written more than 2 years ago? Have fun...BasicCoder2 wrote:Nothing annoys me more than wanting to update or edit FB code I wrote 11 years ago and having to modify it to work with the latest incarnation of FreeBASIC.
Some old 2006 FreeBASIC code started with OPTION EXPLICIT
error 146: Only valid in -lang deprecated or fblite or qb, found 'OPTION' in 'OPTION EXPLICIT'
Removing the directive still gave errors,
error 147: Default types or suffixes are only valid in -lang deprecated or fblite or qb in 'declare function GetVerticeType(image1() as ubyte, x as integer, y as integer)'
So on some old 2006 code I have to go through and change,
for y = 0 to iHEIGHT - 1
to
for y as integer = 0 to iHEIGHT - 1
or,
declare function GetVerticeType(image1() as ubyte, x as integer, y as integer)
to
declare function GetVerticeType(image1() as ubyte, x as integer, y as integer) as integer
Cost of improving computer languages I guess.