equality operators on types

Walter Bright newshound2 at digitalmars.com
Sat Jun 16 09:12:15 PDT 2012


On 6/16/2012 4:37 AM, Timon Gehr wrote:
> On 06/16/2012 02:48 AM, Walter Bright wrote:
>> On 6/15/2012 5:11 AM, Timon Gehr wrote:
>>> Why not allow equality operators to operate on types?
>>
>> Generally because of parsing problems.
>
> What kind of problems? All types fit into the expression grammar well enough.
> (pointer types should require parentheses in order to simplify parsing)

Perhaps it is possible if () are required, but one would have to carefully go 
through all the cases.


More information about the Digitalmars-d mailing list