[nem-en] [Proposal] Extend Record or Accesor macro to create POD types

Kamil Skalski kamil.skalski at gmail.com
Mon Jan 8 13:15:37 CET 2007


You can do

[A,B,C,D]
class X { }

2007/1/8, Ivan Lakhturov <lakhturov at gmail.com>:
> Hello Michal,
>
> Monday, January 8, 2007, 10:26:16 AM, you wrote:
>
> > On 1/8/07, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> >> > Yes, using it explicitly kind of defeats the point -- seems longer
> >> > than writing 'public' everywhere.
> >>
> >> The shortest (usual) version would be
> >>
> >> [AddModifiers (Public)]
> >> class A {
> >>  ...
> >> }
>
> > You still need to write [Record]. I think I like just [Record(Public)] more.
>
>
> btw, how about an easy way to combine macros?
> i mean if we have
>
> [A]
> [B]
> [C]
> [D]
> [E]
> class Foo {}
>
> how about a way of combining e.g. [A,B,C,D] into [T]
>
> [T]
> [E]
> class Foo {}
>
> maybe add some support for this?
>
>
> regards, phantom
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list