Orange - Free from D1/Tango

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Feb 18 04:27:58 PST 2013


18-Feb-2013 15:51, Johannes Pfau пишет:
> Am Mon, 18 Feb 2013 12:03:29 +0100
> schrieb Jacob Carlborg <doob at me.com>:
>
>> On 2013-02-18 11:56, Dmitry Olshansky wrote:
>>
>>> Good.
>>>
>>> It's just would be really nice to have @nonSerialized and simillar
>>> somewhere in object.di with prescribed semantics. Then e.g. any
>>> serialization libraries including some 3rd party ones will play
>>> by the same basic rules as far as user is concerned.
>>
>> Yeah, when/if in Phobos that would be a good idea.
>>
>
> Does this really belong into object.di? It adds more stuff to the
> global namespace (and druntime). Couldn't we just place "standard,
> library attributes" into std.attributes or something similar?
>

I think it doesn't matter and shouldn't become a roadblock to its 
inclusion someplace standard. But if it's in object.d or core.attributes 
then druntime too can make use of it. It's a recurring problem that 
druntime has no access to certain useful things like std.traits simply 
because of their placement in fs ;) and I'd hate to see this problem 
repeat again.

I also suspect that it'd be around 10-20 attributes tops.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list