Template problem - if arg[0]==something; call arg[1];

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 27 15:49:18 PDT 2015


On Wed, 27 May 2015 22:35:54 +0000, wobbles wrote:

quick looking thru your code raises two questions:

1. didn't you forgot to add `.stringof` in `constructCases`?
2. didn't you forgot `!` in `constructCases(Aliases[2..$])`?
   i.e. `constructCases~(Aliases[2..$])`

it may work with that.
-------------- 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/20150527/0ad69288/attachment.sig>


More information about the Digitalmars-d-learn mailing list