diff --git a/changelog/std-experimental-scripting.dd b/changelog/std-experimental-all.dd similarity index 74% rename from changelog/std-experimental-scripting.dd rename to changelog/std-experimental-all.dd index 372edd35b7d..0ccfe2ec395 100644 --- a/changelog/std-experimental-scripting.dd +++ b/changelog/std-experimental-all.dd @@ -1,10 +1,10 @@ -`import std.experimental.scripting` as a global convenience import +`import std.experimental.all` as a global convenience import -$(MREF std,experimental,scripting) allows convenient use of all Phobos modules +$(MREF std,experimental,all) allows convenient use of all Phobos modules with one import: --- -import std.experimental.scripting; +import std.experimental.all; void main() { 10.iota.map!log.sum.writeln; @@ -13,11 +13,11 @@ void main() For short scripts a lot of imports are often needed to get all the modules from the standard library. -With this release it's possible to use `import std.experimental.scripting` for importing the entire +With this release it's possible to use `import std.experimental.all` for importing the entire standard library at once. This can be used for fast prototyping or REPLs: --- -import std.experimental.scripting; +import std.experimental.all; void main() { 6.iota @@ -34,6 +34,6 @@ In this case, $(LINK2 $(ROOT)spec/module.html#static_imports, static imports) or $(LINK2 $(ROOT)spec/module.html#renamed_imports, renamed imports) can be used to uniquely select a specific symbol. -The baseline cost for `import std.experimental.scripting` +The baseline cost for `import std.experimental.all` is less than half a second (varying from system to system) and work is in progress to reduce this overhead even further. diff --git a/posix.mak b/posix.mak index ece00ee05f4..8539fa03a25 100644 --- a/posix.mak +++ b/posix.mak @@ -195,7 +195,7 @@ PACKAGE_std = array ascii base64 bigint bitmanip compiler complex concurrency \ outbuffer parallelism path process random signals socket stdint \ stdio string system traits typecons uni \ uri utf uuid variant xml zip zlib -PACKAGE_std_experimental = checkedint typecons scripting +PACKAGE_std_experimental = all checkedint typecons PACKAGE_std_algorithm = comparison iteration mutation package searching setops \ sorting PACKAGE_std_container = array binaryheap dlist package rbtree slist util diff --git a/std/experimental/scripting.d b/std/experimental/all.d similarity index 94% rename from std/experimental/scripting.d rename to std/experimental/all.d index 8b666bae182..60da41607c3 100644 --- a/std/experimental/scripting.d +++ b/std/experimental/all.d @@ -1,12 +1,12 @@ /++ Convenience file that allows to import entire Phobos in one command. +/ -module std.experimental.scripting; +module std.experimental.all; /// @safe unittest { - import std.experimental.scripting; + import std.experimental.all; int len; const r = 6.iota @@ -23,7 +23,7 @@ module std.experimental.scripting; /// @safe unittest { - import std.experimental.scripting; + import std.experimental.all; assert(10.iota.map!(partial!(pow, 2)).sum == 1023); } diff --git a/win32.mak b/win32.mak index 3ec7e2e1a07..e895764d15c 100644 --- a/win32.mak +++ b/win32.mak @@ -284,7 +284,7 @@ SRC_STD_INTERNAL_WINDOWS= \ std\internal\windows\advapi32.d SRC_STD_EXP= \ - std\experimental\checkedint.d std\experimental\typecons.d std\experimental\scripting.d + std\experimental\all.d std\experimental\checkedint.d std\experimental\typecons.d SRC_STD_EXP_ALLOC_BB= \ std\experimental\allocator\building_blocks\affix_allocator.d \ diff --git a/win64.mak b/win64.mak index 6da4cf63691..cbdba935aab 100644 --- a/win64.mak +++ b/win64.mak @@ -309,7 +309,7 @@ SRC_STD_INTERNAL_WINDOWS= \ std\internal\windows\advapi32.d SRC_STD_EXP= \ - std\experimental\checkedint.d std\experimental\typecons.d std\experimental\scripting.d + std\experimental\all.d std\experimental\checkedint.d std\experimental\typecons.d SRC_STD_EXP_ALLOC_BB= \ std\experimental\allocator\building_blocks\affix_allocator.d \