[nem-en] Why option['a] is not [Serializable]?
Kamil Skalski
kamil.skalski at gmail.com
Mon Mar 5 21:49:30 CET 2007
Why repeat yourself, when you can use macro? ;)
http://nemerle.org/mailman/pipermail/svn/2007-March/007489.html
2007/3/5, Sergey Shishmintzev <sergey.shishmintzev at gmail.com>:
> Hi,
>
> I suggest to mark optional value variant with SerializableAttribute:
>
> [nemerle]
> // File lib/option.n
> namespace Nemerle.Core
> {
> /**
> * The optional value variant.
> */
> [System.Serializable] // <--- here
> [DebuggerNonUserCode]
> public variant option ['a]
> {
> [System.Serializable] // <--- here
> [DebuggerNonUserCode]
> | None
> [System.Serializable] // <--- and here
> [DebuggerNonUserCode]
> | Some { val : 'a; }
> ...
> [/nemerle]
>
> --
> Serg
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list