[VM/vm] don't completely eliminate unsupported functions #1597
Labels
enhancement
New feature or request
error handling
Issues related to Error handling
library
Issues related to the standard library
todo
Automatically generated issues from TODOs in the code
vm
Issues related to the Virtual Machine implementation
[VM/vm] don't completely eliminate unsupported functions
right now, if we have e.g. a MINI build, some - albeit few -
features are disabled. As a consequence, some functions cannot
work. For example, mysqlite is not available in MINI builds.
However, totally removing e.g.
open
- leads to confusingsituations, such as me using the function and all I can see
is that the identifier... "open" wasn't found.
Not very helpful at all, given that we could simply let people
know what is going on. That would obviously mean not completely
eliminating the function, only having it throw an error in case
some - or all - of its features are not supported.
Also, it would be a good idea to create sth like a macro(?) which
could combine the logic of
when defined(MINI)
(or whatever) +the error handling part. Food for thought! ;-)
arturo/src/vm/vm.nim
Line 80 in c858826
7f6e7e4ec497a5c403006daa327d9160cbdbd5d6
The text was updated successfully, but these errors were encountered: