On 3/26/11 4:20 PM, Robert Jacques wrote:
On Sat, 26 Mar 2011 15:58:18 -0400, Andrei Alexandrescu
<[email protected]> wrote:
On 3/26/11 2:11 PM, Piotr Szturmaj wrote:
I propose that, Nullable should be an alias (or subtype) of Algebraic,
for example:
template Nullable(T)
{
alias Algebraic!(T, void*) Nullable;
}
Should be Algebraic!(T, void). If that doesn't currently compile, we
should make it compile.
Andrei
For what it's worth, both Algebraic!(T, void*) and Algebraic!(T, void)
compile on my branch of std.variant.
Great. I'd prefer the one using void because storing a void* can be a
legitimate need.
Andrei