[nem-en] Parse error on !@type

Michal Moskal michal.moskal at gmail.com
Mon Jan 22 08:26:55 CET 2007


On 1/22/07, Paul Bludov <pbludov at gmail.com> wrote:
>
> ----- Original Message -----
> From: "Kamil Skalski" <kamil.skalski at gmail.com>
> To: <devel-en at nemerle.org>
> Sent: Monday, January 22, 2007 2:07 AM
> Subject: Re: [nem-en] Parse error on !@type
>
>
> > It's the same kind of problem like, e.g.
> >
> > def x =!true;
> >
> > you cannot connect operators this way, so I guess this is not
> > something we should special-case
>
> '@' is a special prefix and must be handled in a special way.
>
> If i can write something like
> public test(t : int) : int
> {
>   1+t;
> }
>
> I definitelly can write
>
> public test(@type : int) : int
> {
>   1+ at type;
> }

!!x is not ! !x, so why should @ be any different?


-- 
   Michał


More information about the devel-en mailing list