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
233 stars 24 forks source link

Infinite extension **populate** call #511

Closed arakov closed 3 years ago

arakov commented 3 years ago

Describe the bug

A critical exception is raised when the following code is executed

To Reproduce

var f := Array.allocate(10).populate:(int i => {^i * i});

f.forEach:(func) { console.printLine(func()) };
arakov commented 3 years ago

fixed