Checking function parameters in Phobos
Walter Bright
newshound2 at digitalmars.com
Wed Nov 20 16:23:51 PST 2013
On 11/20/2013 2:49 AM, Jacob Carlborg wrote:
> How should we accomplish this? We can't replace:
>
> void main (string[] args)
>
> With
>
> void main (UnsafeString[] args)
>
> And break every application out there.
Use a different type for the validated string, validated means your program has
guaranteed it has a certain form defined by that program.
More information about the Digitalmars-d
mailing list