October 05, 2011 Re: object.Error: Access Violation | ||||
---|---|---|---|---|
| ||||
You need to "new" class objects, they're not structures: import std.stdio; class TTest { public void Info(T)(string name) { writeln(typeid(T), "\t", name); } } void main() { TTest test = new TTest; test.Info!(uint)("one"); } Hopefully you know what that means. :) |
October 05, 2011 Re: object.Error: Access Violation | ||||
---|---|---|---|---|
| ||||
Attachments:
|
> You need to "new" class objects, they're not structures:
>
> import std.stdio;
> class TTest
> {
> public void Info(T)(string name)
> {
> writeln(typeid(T), "\t", name);
> }
> }
> void main()
> {
> TTest test = new TTest;
> test.Info!(uint)("one");
> }
>
> Hopefully you know what that means. :)
>
Thank you,afterC++is often overlooked.Sillymistake.:-)
|
Copyright © 1999-2021 by the D Language Foundation