About void[] and asockets

Jolly James via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 22 10:06:23 PST 2017


On Wednesday, 22 February 2017 at 17:57:31 UTC, Adam D. Ruppe 
wrote:
> On Wednesday, 22 February 2017 at 17:53:21 UTC, Jolly James 
> wrote:
>> No matter how I try, I am always getting:
>> Error: none of the overloads of '__ctor' are callable using 
>> argument types (Data*), candidates are: (my-project)
>
> I don't know the library, so I'd have to see the Data class, 
> but you might just be using &data when you should be using 
> plain data.

Silly me!
Now I used Xamarin's Find-Usage-Feature, found one usage in ae 
and realized that there is no reason for using the keyword `new`, 
as Data is a struct (and so one does not need `new` unlike in C#) 
...


More information about the Digitalmars-d-learn mailing list