NotNull Parser

Namespace rswhite4 at googlemail.com
Fri Aug 3 03:56:18 PDT 2012


On Friday, 3 August 2012 at 10:53:02 UTC, Timon Gehr wrote:
> On 08/03/2012 12:38 PM, Namespace wrote:
>> In context with my post here:
>> http://forum.dlang.org/thread/gajrorlwnrriljxnxfmt@forum.dlang.org#post-egvyqwkcqjglhrvujkar:40forum.dlang.org
>>
>>
>> I wrote the last days a NotNull Parser.
>> What is this?
>> The NotNull Parser generate for parameter statements with a
>> following "?" valid preconditions.
>>
>> Example:
>> [code]
>> void foo(Object? o) {
>>    // do something with o
>> }
>> [/code]
>>
>> will convert into
>
> The notation 'T?' is normally used for a nullable type.

I can change the operator easily. Any better suggestions?


More information about the Digitalmars-d-learn mailing list