traits getOverload of a template method

aliak something at something.com
Mon Sep 10 13:47:32 UTC 2018


On Monday, 10 September 2018 at 13:46:08 UTC, aliak wrote:
> On Monday, 10 September 2018 at 12:57:25 UTC, Timoses wrote:
>>
>> How to "select" one?
>
> Can you either:
>
> alias myPeek = () => peek!(int, Endian.bigEndian, 
> immutable(ubyte)[])();
> Or
> alias myPeek = (size_t *index) => peek!(int, Endian.bigEndian, 
> immutable(ubyte)[])(index);
>
> ??

With the Range arg as well of course.


More information about the Digitalmars-d-learn mailing list