CustomString and string constraints
SrMordred
patric.dexheimer at gmail.com
Tue Jun 26 23:42:26 UTC 2018
On Tuesday, 26 June 2018 at 22:16:28 UTC, Jonathan M Davis wrote:
>
> If what you're asking is whether it's possible for a template
> constraint that uses something like isSomeString will ever
> match a user-defined type, then the answer is no.
Thats exactly what I wanted xD.
My idea was that if you can make custom array types that operate
with phobos lib(via some implicit conversions) then there
"should" have a way to do that with strings, but I understood the
issues that you explained. Thanks!
More information about the Digitalmars-d-learn
mailing list