Inky-developer / debris

A powerful datapack generator for minecraft
https://inky-developer.github.io/debris/debris_lang/
MIT License
15 stars 0 forks source link

Function call does not trigger monomorphization if the environment changed #68

Closed Inky-developer closed 2 years ago

Inky-developer commented 2 years ago

Describe the bug Functions do not get monomorphized again for the same call arguments, even if they depend on some global variables which have changed between invocations.

This could be fixed by making function overloads store part of the environment they depend on aditionally. Related: #67

To Reproduce Playground: https://inky-developer.github.io/debris-playground/?code=c55b2d6a22c6289cfafbf7f0106567e061c79ce6

Inky-developer commented 2 years ago

Fixed by 7e63ef9fc98912b048a2caf990f179e14be2c42e