Question 1: is it somehow possible to tell the compiler to ignore all libraries in lib/ (including system.nim), copy them at some other location (e.g. inside the project tree) and make it all work?
Question 2: is it possible to have some very minimal system.nim file (for a project which contains no code at all) and then manually copy things into it as the need arrises? I tried and it looks non-trivial. Is it realistic to have success here?
I have someting else than --os:standalone in mind. When possible I'd like to start with "empty sheet of paper", with nothing (or next to nothing) at all inside my own version of system.nim, and later gradually and manually copy needed things like boolean definition or magic functions.
It is not very easy for me to orient in current libraries: many when for multiple targets (they are harder to follow than #ifdef/#endif), long names (SinglyLinkedList instead of slist), new coding style.
Btw, can I use {.magic.} anywhere in normal code? It seems to work for few trivial uses.
Btw, can I use {.magic.} anywhere in normal code? It seems to work for few trivial uses.
Yes and I think the same holds for .compilerProc (which is a "helper for the codegen").
Araq: Modifying system.nim is indeed not trivial but also possible and eventually we'll break it up into yet more include files so that you can include what you need into your personal system.nim.
Hello, Araq. What is about modular system.nim? Will it be possible to import only some parts of system.nim manually or automatically? What is work status now?
What is the reason to import whole system module?
Thanks
Is it possible to minimize imported system module?
What is the reason to import whole module if you need only part of it?
What is the reason to import whole module if you need only part of it?
It doesn't cost anything and is convenient?