Re: error "cannot use this type here without a top-level '^'" ??
- From: "Arnaud Debaene" <adebaene@xxxxxxxxxxxxxxxx>
- Date: Thu, 9 Feb 2006 00:31:41 +0100
Peter Oliphant wrote:
Didn't know that. Thanx! You say you can have other methods (otherYes, there are no restrictions on value types methods.
than a constructor) on value types. Can they have arguments?
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
.
- Follow-Ups:
- Re: error "cannot use this type here without a top-level '^'" ??
- From: Peter Oliphant
- Re: error "cannot use this type here without a top-level '^'" ??
- References:
- error "cannot use this type here without a top-level '^'" ??
- From: asnowfall
- Re: error "cannot use this type here without a top-level '^'" ??
- From: Peter Oliphant
- Re: error "cannot use this type here without a top-level '^'" ??
- From: Carl Daniel [VC++ MVP]
- Re: error "cannot use this type here without a top-level '^'" ??
- From: Peter Oliphant
- error "cannot use this type here without a top-level '^'" ??
- Prev by Date: Re: Help me with CStatic
- Next by Date: Re: Wrong type of char array
- Previous by thread: Re: error "cannot use this type here without a top-level '^'" ??
- Next by thread: Re: error "cannot use this type here without a top-level '^'" ??
- Index(es):