tags:

views:

124

answers:

1

I'm trying to write a Delphi function that returns a TList<TMyType> object. But I see that Result := tlist_instance doesn't work. What's the function to do my work?

+3  A: 

I'm sorry i made an incredible error. Result := TList<Something>.Create works perfectly. I'm very sorry.

Christian Cabizza
I think that you should be able to delete the question.
Andreas Rejbrand
@Christian Cabizza: +1 You can use the upvotes :) and it happens to all of us, you struggle with some code for hours, finally post a question , look at your code some more, and suddenly find the answer.
Edelcom
Yes, I have posted a few really stupid questions myself... Unfortunately, after a while you cannot delete them, even though no one could possibly benefit from the information...
Andreas Rejbrand
If you really want to delete it, you'd better do it fast. There's some threshold beyond which a question can have "too many" answers, and it cannot be deleted anymore.
Rob Kennedy
Too late... it already has too comments!
Christian Cabizza