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

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx> wrote in message
news:OgBfzqALGHA.2300@xxxxxxxxxxxxxxxxxxxxxxx
... If you want the actually instances stored in the array, you must
create 'value' struct. These have the dis-advantage that you can't have
any methods, incuding no constructors, for them.

That's not true. You can have methods on value types, but you must have a
no-args constructor.

-cd


.



Relevant Pages

  • Re: data exchange between two windows
    ... If you understood constructors, ... Why would you "never use a CString as a member of a struct"? ... "paying attention" is the whole point of this. ... If you use 'malloc', you MUST pay attention. ...
    (microsoft.public.vc.mfc)
  • Re: remove structs default constructor?
    ... Structs cannot contain explicit parameterless constructors ... Each struct already has a default constructor that initializes the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C++ user-defined new (expert question)
    ... there are no constructors, just 'new'. ... C-level code requires n parameters where n is between 0 and 6. ... vs derivation may help (may be bad idea for existing C struct inside C ...
    (microsoft.public.vc.mfc)
  • Re: -Crawl- Compiling 4.1a
    ... The error was caused by the C++ compiler seeing a function call ... That's called a function prototype. ... > class without constructors ... struct armour_def ...
    (rec.games.roguelike.misc)
  • GURUS: VB .NET alternatives to C# type conversion operators and operator overloading?
    ... I have implemented a struct in C# which acts as a sort of a variant type, ... For the conversion purpose I had to implement static conversion operators, ... or MyStruct = CType ... I wrote the following in VB as a test, just the constructors and the ...
    (microsoft.public.dotnet.framework)