|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - more property discussion...
Continuing from another very deep thread... On Fri, 29 Jan 2010 14:43:12 -0500, Lutger <lutger.blijdestijn gmail.com> wrote:On 01/29/2010 07:01 PM, Andrei Alexandrescu wrote: ...How about property? When you add a property to a function it can be called as an assignment. property does not touch the calling of no-argument functions. Are there any problems with that? Jan 29 2010
How is that message passing thing going?
C# has an attribute called [NonSerialized] and [XmlIgnore] and Java has
transient
to mark things that are not to be serialized.
Will there be an equivalent thing for D?
I was also wondering about a syntax if you wish to automatically serialize
properties.
DoNotSerialize property
int number()
{
}
DoNotSerialize property
void number(int value)
{
}
I guess it would have to be applied to both. (sorta ugly)
Or we could "pickle" things instead.
-----
On the Graystone's bookshelf there are several computer books. Any chance to get
TDPL on it too?
Jan 31 2010
|