Skip to content

v2.0.0-beta106

Choose a tag to compare

@pachanga pachanga released this 28 Feb 18:55
· 1179 commits to master since this release

New Features

  • Adding StackList < T > struct which can be used to pass small lists around without any allocations. Adding a VM.Start(..) variation which uses StackList < Val > to pass arguments to a Fiber
  • Adding convenience VM.TryLoadModuleSymbol(..)

Bugfixes

  • Fixing UTF8 symbols not being properly handled during the preprocessing phase
  • Fixing potential infinite loop during bad imports pre-parsing phase
  • Fixing priority of logical AND over OR operations in cases like:
bool a = true
bool b = true
bool c = true
bool d = false

bool e = a && b || c && d 
// ^^^^^^^^^^^^^^^^^^^^^
// e is true, not false, expression is evaluated as follows: 
// (a && b) || (c && d), 
// not ((a && b) || c) && d) as before
  • Adding implicit casting to int of the division product of two int operands:
int a = 11
int b = 2
int c = a / b  // <--- c == 5, not 5.5 as before