Exclamation symbol "!" within functions syntax

Ali Çehreli acehreli at yahoo.com
Wed Jul 27 11:09:19 UTC 2022


On 7/27/22 04:00, pascal111 wrote:
> I noticed more than once that the exclamation "!" is used within 
> functions typing, and it seems like an operator with new use, for 
> example "to!int()", ".tee!(l => sum += l.length)", 
> "enforce!MissingArguments...", so what dose it means?
> 

The binary ! operator is used for specifying template arguments. I have 
some explanation here:

 
http://ddili.org/ders/d.en/templates.html#ix_templates.!,%20template%20instance

Ali


More information about the Digitalmars-d-learn mailing list