object.Error: Access Violation
"Мартыненко А.А."
andrey.martynenko at usk.ilimgroup.ru
Tue Oct 4 18:11:06 PDT 2011
> 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.:-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20111005/b75bab1d/attachment.html>
More information about the Digitalmars-d-learn
mailing list