Using memberspaces for a property-like syntax and more
Rob T
alanb at ucora.com
Sat Feb 2 13:21:20 PST 2013
On Saturday, 2 February 2013 at 15:56:41 UTC, TommiT wrote:
[..]
>
> Memberspaces shouldn't feel like variables at all. They should
> feel exactly like C++ namespaces that live inside a struct or a
> class. You can't take the address of a namespace or pass it as
> an argument. It's just an identifier that can be used to
> separate two same names, like std::sort and boost::sort. A nice
> IDE also colors memberspaces differently from a variables, etc.
>
Rather than feel exactly like C++ namespaces, I am wondering if
we could define a memberspace as a type so that can be reused
multiple times in various areas of an application. With
templates, a memberspace can be transformed in various ways to
work with different data types.
--rt
More information about the Digitalmars-d
mailing list