CT-String as a Symbol

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 20 06:45:20 PDT 2015


On Mon, 20 Apr 2015 13:31:03 +0000, Nordlöw wrote:

> On Thursday, 16 April 2015 at 18:12:35 UTC, Nordlöw wrote:
>> Is there a way to CT-query the arity of all opIndex and opSlice
>> overloads?
> 
> Ping.

as long as they aren't templates, you can use any function traits on 'em. 
like `ParameterTypeTuple!(A.opIndex).length` for example.

with templated opXXX i believe that there is no simply way to get 
argument tuple.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150420/3d83e4e7/attachment.sig>


More information about the Digitalmars-d-learn mailing list