Checking function parameters in Phobos

Jacob Carlborg doob at me.com
Thu Nov 21 00:28:46 PST 2013


On 2013-11-21 08:46, Jonathan M Davis wrote:

> You could use alias this and alias the Validated struct to the underlying
> string, but if you did that, you'd probably end up having it escape the struct
> and used as a naked string the vast majority of the time, which would
> essentially defeat the purpose of the Validated struct.

Yeah, that's what needs to be avoided and is the reason "alias this" or 
a property returning the raw string cannot be used.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list