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
227 stars 23 forks source link

The stack allocated variable is not property boxed and invoked for MessageName instance #616

Closed arakov closed 3 months ago

arakov commented 9 months ago

Describe the bug The stack allocated variable is not property boxed and invoked for MessageName instance

To Reproduce

public singleton convertor 
{ 
   generic(n)
   {
      MessageName mssg := __received.MessageName;

      ^ mssg(new ExtensionVariable(n, extensions'intConvertOp))
   }
}

public program()
{
   var n := convertor.toInt("2");
}

Expected behavior mssg variable should boxed and correctly call the dispatcher

arakov commented 3 months ago

Fixed in the previous versions