Closed Oldes closed 4 years ago
FYI, Ren-C catches a lot of these with unused declaration warnings. It does this by making macros for accessing the arguments of natives that declare constants. If those constants don't get referenced, you get a warning (which we turn into an error).
So if you have a native like my-native: native [x [integer!] /thing]
you write something like:
REBNATIVE(my_native) {
INCLUDE_PARAMS_OF_MY_NATIVE;
if (Test_Integer(ARG(x))) {...}
...
}
And INCLUDE_PARAMS_OF_MY_NATIVE turns into something like:
static const int p_x = 1;
static const int p_thing = 2;
So it would notice you didn't say REF(thing), and warn you.
In other news, talks from the Philadelphia conference are now online:
As you've managed to learn a bit from working on the code over time, then perhaps my technical internals talk would make sense. It is subtitled: https://www.youtube.com/watch?v=6nsKTpArTCE.
Currently it is not possible to copy just a part of the vector:
Expected result is
make vector! [integer! 32 2 [1 2]]
or at least error.