On Wed, Jun 05, 2013 at 03:38:56PM -0400, Andrei Alexandrescu wrote: > On 6/5/13 2:42 PM, H. S. Teoh wrote: > >Is that even necessary? We could just do this: > > > >----std/algorithm.d---- > >module std.algorithm; > >public import std.algorithm.search; > >public import std.algorithm.compare; > >public import std.algorithm.iteration; > >public import std.algorithm.sort; > >public import std.algorithm.set; > >public import std.algorithm.mutation; > >----snip---- > > For perfect 100% undetectable backwards compatibility: > > module std.algorithm; > private import std.algorithm.search; > alias balancedParens = std.algorithm.search.balancedParens; > alias boyerMooreFinder = std.algorithm.search.boyerMooreFinder; > ... [...]
This is a maintenance nightmare, though. I'd vote against it unless doing otherwise causes major breakage of existing code. Unless... hmm, is it possible to use runtime introspection to automatically generate these aliases via a mixin? That would be very cool, and a bit scary at the same time. :-P T -- Notwithstanding the eloquent discontent that you have just respectfully expressed at length against my verbal capabilities, I am afraid that I must unfortunately bring it to your attention that I am, in fact, NOT verbose.