forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: added support for copy/deep and copy/types on map! datatype
- Loading branch information
Showing
1 changed file
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some "Make Type" handlers are for a class of types. E.g. a MT_String is used for TAG!, BINARY!, etc. too:
https://github.com/rebol/rebol/blob/25033f897b2bd466068d7663563cd3ff64740b94/src/core/t-string.c#L275
MAP! doesn't use it because there is nothing else in its class. It could say:
And Ren-C does this kind of thing. Because all unused parameters must be explicitly marked so.
This catches bugs--really! Your case here would be a good example, because ignoring the /DEEP and /TYPES refinements without giving some kind of reaction causes a compiler error. That way you don't have to invisibly discover that it didn't heed them.