ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
236 stars 26 forks source link

Native operations with unsigned int #668

Open arakov opened 3 months ago

arakov commented 3 months ago

Describe the bug The following code must use native operations

To Reproduce

import extensions;

public program()
{
   uint n := 0;
   while (n < 1000000000u)
     n++;

   console.writeLine(n);  
}

Expected behavior The generated code must use only native numeric operations similar to the operation with int type