You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like since 1ef6db1 , gensym is not behaving like:
/* Generate a unique symbol. This is used in the library function gensym. The
* symbol will be of the format _XXXXXX, where X is a base64 digit, and
* prefix is the argument passed. No prefix for speed. */
Example:
Janet 1.17.0-dev-61769c8f linux/x64 - '(doc)' for help
repl:1:> (gensym)
repl:2:> (type (gensym))
:symbol
The return value of (gensym) is not visible on my terminal.
Examined under gdb it looked like the leading byte was 0.
It looks like since 1ef6db1 ,
gensym
is not behaving like:Example:
The return value of
(gensym)
is not visible on my terminal.Examined under gdb it looked like the leading byte was 0.
gensym_counter
used to be initialized like this: 1ef6db1#diff-25c765d33445b0e34add62c8093ae0f902e5c87ec602c591c71e644e5b858c2aL198Since the commit above, it looks like
janet_vm.gensym_counter
is filled with 0 bytes: 1ef6db1#diff-25c765d33445b0e34add62c8093ae0f902e5c87ec602c591c71e644e5b858c2aR46The following seems to work in light testing here:
The text was updated successfully, but these errors were encountered: