-
-
Notifications
You must be signed in to change notification settings - Fork 753
Add sumtype to Phobos #7702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sumtype to Phobos #7702
Changes from all commits
9270883
6d304b2
cc05497
73b160e
92b46af
2229f07
1240230
c1626c5
7dc3e6e
03a7d84
43c1ec2
c60702c
61ba1f6
abe9f82
d4d1e66
d5d51c2
b9e9730
ead2e63
99890f7
d6aff90
7dfc0c4
9bc6479
2b1bbbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -216,7 +216,7 @@ PACKAGE_std = array ascii base64 bigint bitmanip compiler complex concurrency \ | |
| conv csv demangle encoding exception file \ | ||
| functional getopt json math mathspecial meta mmfile numeric \ | ||
| outbuffer package parallelism path process random signals socket stdint \ | ||
| stdio string system traits typecons \ | ||
| stdio string sumtype system traits typecons \ | ||
| uri utf uuid variant xml zip zlib | ||
| PACKAGE_std_experimental = checkedint typecons | ||
| PACKAGE_std_algorithm = comparison iteration mutation package searching setops \ | ||
|
|
@@ -670,6 +670,27 @@ betterc: betterc-phobos-tests | |
| --inputdir $< --outputdir $(BETTERCTESTS_DIR) | ||
| $(DMD) $(DFLAGS) $(NODEFAULTLIB) -betterC -unittest -run $(BETTERCTESTS_DIR)/$(subst /,_,$<) | ||
|
|
||
|
|
||
| ################################################################################ | ||
| # Full-module BetterC tests | ||
| # ------------------------- | ||
| # | ||
| # Test full modules with -betterC. Edit BETTERC_MODULES and | ||
| # test/betterc_module_tests.d to add new modules to the list. | ||
|
Comment on lines
+678
to
+679
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having this information duplicated in two different files is not ideal. One possible alternative would be to put the list in its own file, and have both |
||
| # | ||
| # make -f posix.mak betterc-module-tests | ||
| ################################################################################ | ||
|
|
||
| BETTERC_MODULES=std/sumtype | ||
|
|
||
| betterc: betterc-module-tests | ||
|
|
||
| betterc-module-tests: $(ROOT)/betterctests/betterc_module_tests | ||
| $(ROOT)/betterctests/betterc_module_tests | ||
|
|
||
| $(ROOT)/betterctests/betterc_module_tests: test/betterc_module_tests.d $(addsuffix .d,$(BETTERC_MODULES)) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if I ought to be re-using this directory from the regular betterC tests or not, but it seems to work. |
||
| $(DMD) $(DFLAGS) $(NODEFAULTLIB) -of=$(ROOT)/betterctests/betterc_module_tests -betterC -unittest test/betterc_module_tests.d $(addsuffix .d,$(BETTERC_MODULES)) | ||
|
|
||
| ################################################################################ | ||
|
|
||
| .PHONY : auto-tester-build | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rationale for these disabled checks, copy+pasted from the relevant commit message:
their messages are ignored.
to the module rather than the SumType symbol itself.
a valid alternative to inout on opEquals and toString.
template this parameters and parameters of private (but documented)
functions.