[Mono-list] (Generics) type parameters and pointers

Alan Jenkins sourcejedi@phonecoop.coop
Sun, 25 Jul 2004 13:51:39 +0000

I know type parameters cannot be pointers - ArrayList<int*> is not permit=
ted -=20
but I haven't been able to a definitive statement regarding whether point=
to the type of a parameter is permitted, e.g.

struct Pointer <T> {
=09T* value;

Currently, gmcs will complain that it can't find the type "T*", but I wou=
have thought it would be relatively easy to allow, given that the followi=
is allowed.

struct Array <T> {
=09T[] value;