Language Syntax
twinBASIC introduces numerous enhancements to VBx language syntax, including new data types, improved type systems, and modern programming constructs.
Topics
- Alias Types - alias types, similar to typedef in C and using in C++
- Data Types - New data types (LongPtr, LongLong, Decimal)
- Interfaces and Coclasses - Native interface and coclass definitions
- Inheritance - Implements Via and Inherits keywords
- Delegates - Function pointers, also called delegates
- Generics - Generic type support
- Overloading - Method overloading capabilities
- Operators - New operators and syntax
- Literals - Binary literals and digit grouping
- Type Inference - As Any type inference
- Pointers - Enhanced pointer functionality
- UDT Enhancements - User-defined type improvements
- Loop Control - Continue … and Exit While
- Return Syntax - Modern Return statement
- Inline Initialization - Variable initialization
- Handler Methods - Handles and Implements syntax
- Module Organization - Code placement flexibility
- Comments - New code comment syntax