Adept 2.4
Adept 2.4 has been released!
Now with better in-depth documentation! Available at https://github.com/AdeptLanguage/Adept/wiki
Changes since Adept 2.3
- Added namespaces
- Added initializer lists
- Added
__as__management function - Added
~>operator - Added polycount variables
$#N - Added static variables
- Added alternative syntax choices
- Added better syntax for constant expressions
- Added ability to have scoped constant expressions
- Added new way to pass variadic arguments using VariadicArray
- Added function aliases
- Added
--entryandpragma entry_point - Added
sizeof(value)expression - Reduced size of resulting executable
- Made switch statement cases less picky
- Added built-in compile-checks for
printf(String, args ...) - Added simple unions
- Added polymorph that matches convertable types
$~Tof$T - Added ability to use
++and--on floating point types - Changed integer values of unspecified type to collapse to type
longinstead ofint - Added
#define - Added cross-compilation for Windows from MacOS
- Changed warnings to print code fragments
- Added
--short-warningsandpragma short_warningsto disable code fragments for warnings - Added
#errorand#warning - Added
-Werrorandpragma warn_as_errorto treat compiler warnings as errors - Added
nullmeta value - Added
--ignore-unusedandpragma ignore_unusedto ignore unused variable warnings - Added prototype REPL
- Added
exhaustivekeyword to force switch statements to account for all values of an enum - Added ability to specify default argument values
- Added
.sizefield toAnyTypetypes - Added support for C-style variadic arguments via
va_start,va_end,va_argandva_copy - Added
__access__management function - Added
__stdlib__dynamic compile-time meta variable - Added
-std=2.4andpragma default_stdlibto set default standard library - Added
import my_componentsyntax to import from the standard library - Improved
--versionhuman friendliness - Added
--ignore-*compiler flags andpragma ignore_pragma directives - Improved compilation performance
- Improved error and warning message format
- Cross-Compilation from MacOS to Windows with
--windows - Fix some bugs
Adept 2.4 also supports backwards-compatibility with most programs written in Adept 2.0 through Adept 2.3.