Skip to content

Commit

Permalink
Allow ~null~ in header BLOCK!s to mean isotopic null
Browse files Browse the repository at this point in the history
This was temporarily needed by the query hacks to get it to do
fake importing, but then it was done another way.  Still it's a
likely useful feature for opting out of header fields explicitly.
  • Loading branch information
hostilefork committed Oct 18, 2023
1 parent b7b76dd commit 8c0bc66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/c-context.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ Context(*) Construct_Context_Managed(

REBVAL *var = Sink_Word_May_Fail(value, specifier);
Derelativize(var, value + 1, specifier);

if (IS_QUASI(var) and HEART_BYTE(var) == REB_WORD) // ~null~, ~true~
Meta_Unquotify_Stable(var); // want the isotope in the object
}

return context;
Expand Down

0 comments on commit 8c0bc66

Please sign in to comment.