To share or not to share, this is the question.

Robert Jacques sandford at jhu.edu
Wed Oct 19 19:54:17 PDT 2011


On Wed, 19 Oct 2011 02:06:06 -0400, Gor Gyolchanyan <gor.f.gyolchanyan at gmail.com> wrote:
> I meant, i have a member of type HWND.
>
> On Wed, Oct 19, 2011 at 6:47 AM, Robert Jacques <sandford at jhu.edu> wrote:
>> On Mon, 17 Oct 2011 08:28:08 -0400, Gor Gyolchanyan
>> <gor.f.gyolchanyan at gmail.com> wrote:
>>>
>>> I don't get it. HWND is an alias for void*. void* is data. what do you
>>> mean, "alias is not data"?
>>
>> void* is a type, not a member field of the class (data)
>>
>

And

shared class T
{
	alias void* v;
	v v2;
	static assert(is(typeof(v2) == shared));
}

compiles so what's your problem?


More information about the Digitalmars-d mailing list