Faster sort?

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 7 02:27:05 PDT 2016


On Thursday, 7 April 2016 at 09:25:46 UTC, John Colvin wrote:
> On Thursday, 7 April 2016 at 08:53:32 UTC, Andrea Fontana wrote:
>> On Thursday, 7 April 2016 at 08:41:51 UTC, John Colvin wrote:
>>> *hench my example of compiling one module to an object file 
>>> and then compiling the other and linking them, without ever 
>>> importing one from the other.
>>
>> If i move boolSort() on another module but I can't use auto as 
>> return type.
>> Return type is a "voldemort" type returned by std.range.chain.
>>
>> How can I define it?
>
> You could create a dummy function (or even the real function, 
> just with a different name) that creates the same type and use 
> typeof(myDummyFunction(myDummyArgs)) when making the definition.

Correction, use 
http://dlang.org/phobos/std_traits.html#ReturnType instead of all 
that typeof mess.


More information about the Digitalmars-d mailing list