trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
123 stars 43 forks source link

Adding module resource API and `include` operation #649

Closed luketpeterson closed 3 months ago

luketpeterson commented 3 months ago

This PR adds the include operation and associated changes so module loaders can make additional named resources available through a resource API.

I also included a fix for an occasional panic caused by the C API being misused, passing a NULL ptr to a function taking an array ptr, when a zero-sized array is desired.