Re: error "cannot use this type here without a top-level '^'" ??



Peter Oliphant wrote:
Didn't know that. Thanx! You say you can have other methods (other
than a constructor) on value types. Can they have arguments?
Yes, there are no restrictions on value types methods.

Also, how would you find this info on MSDN2? Looking up the word
'value', as you can imagine, returns so many responses it's nearly
intractable to find the one based on what we mean here by 'value'...

When looking for this kind of information (pure language rules), I found the
ECMA specification more usefull that MSDN (I found the MSDN2 organization
concerning C++/CLI language very poor). See
http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-372.pdf.
What you're looking for is explained in excrutiating details in §22.2.
This reference may not be easy to read when you're not used to it, but
you're sure to find anything language-related in it, in a rather logical
organization IMHO.

Arnaud
MVP - VC


.