eris wrote:
bearophile Wrote:
eris:
Is there any way to get around including the exclamation point?<
!(int) tells the template what type is T. Somewhere you have to tell it what
type of items you want to put inside it.
The alternative is like the old Java, where your collections contain references
to Object, used to store wrappers (boxes) like Integer, etc, and you have to
cast the items you pull out of them.
So I don't understand what you want.
(1) Cake
(2) Eat it too
Sometimes you realize that you don't get to redefine the language syntax.
That's a bad, cold, lonely day. :-)
bye
And then you come across Lisp, and see a glimmer of hope. An hour after
that, you decide to hang yourself.