Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FreeBASIC 0.17 is available
#1
The official release or FreeBASIC 0.17 is out since May 14

Get it at
http://www.freebasic.net/forum/viewtopic.php?t=8256

What's new? Here are the most important additions.

New -lang command line option
-lang qb is designed to compile QB programs, supports GOSUB, ON ERROR, and returns to the default SINGLE variable type. In return it is limited to 4Mb of memory and will not support OOP. Compatibility with QB will be improved.

-lang fb requires the declaration of all variables, switches to passing parameters byval by default, does not support ON ERROR, GOSUB or type suffixes. In exchange it supports OOP features

-lang deprecated is for compatibility with pre 0.17 FB programs and will ve removed in the future


Enhanced TYPE working as objects:
-method ,properties, constructors and destructors support
-private and public members and methods
-operator overloading in types
-new and free operators
-Not supported yet: static members and inheritance

Syntax enhancements:
-FOR [var] AS [type] = 0
-Multi-level EXIT and CONTINUE (now it's legal to write EXIT DO, DO, DO)

New functions in the runtime lib:
-FRAC, FileCopy, FileAttr, FileLen, FileDateTime.IsDate
-__FB_ARGC__ __FB_ARGV__ allow to manage the command line parameters in C style
-Rnd relies now in a high resolution Mersenne Twister algorithm and no morein C runtime's rand (which gave different results in differnt platforms). A clone QB's RND algorithm is used witg -lang qb
-TYPEOF (works at compile time)

New in the gfxlib:
-VESA linear drive in the DOS version
-Support for fullscreen in Win32-GDI
-SCREENEVENT to mouse, keyboard and window focus changes
-SCREENCONTROL allows to set and retrieve gfx system internal states, for example to set the window position
-GFX_NO_FRAME,GFX_SHAPED_WINDOW,GFX_ALWAYS_ON_TOP for frameless, shaped or always on top graphic windows
-BLOAD and BSAVE manage palettes in 256 bits modes

-#macro #endmacro preprocessor keywords allowing for multiline macros

-lillo's profiler dropped in favor of gprof (gnu's profiler)

-Built in variables holding the state of most of the command line options for use in conditional compilation

-Headers translated for libraries as GDI+, JavaNative Interface, Cairo
Antoni
Reply
#2
Thanks Antoni! ^.^
Reply
#3
I don't really like what happens with -lang qb and -lang fb. If I could have a compromise between the two I'd probably upgrade, though I don't do anything useful with more that 4MB of memory so I guess I'm not in the position to complain.
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#4
The 4Mb limit is in fact an urban legend. You can dim shared a(10000000) in -lang qb. I tried it and it works. I apologize for spreading that wrong information.
Antoni
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)