Verifying the arguments of a function with ref parameters?

ZombineDev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 28 14:50:54 PDT 2016


On Thursday, 28 July 2016 at 21:49:00 UTC, pineapple wrote:
> On Thursday, 28 July 2016 at 20:28:39 UTC, jdfgjdf wrote:
>> "Parameters!dgref.init" does not yield a reference. The real 
>> error is not displayed. In a normal context it would be "stuff 
>> is not callable with...."
>
> What would be a better way to check whether some callable can 
> be called using a parameters tuple?

http://dlang.org/phobos/std_traits#.lvalueOf


More information about the Digitalmars-d-learn mailing list