RAD Studio |  |

E2004: Only read or write clause allowed in property declaration in __automated section (C++)
Example
Collapse All

Storage specifiers stored, default, and nodefault are not allowed in property declarations in __automated sections.

Example
Copy Code

    struct__declspec(delphiclass) clxclass
    {
    int __fastcall Get(void);
    __automated:
    int __property ip1 = { read = Get };      // OK
    int __property ip2 = { read = Get, default = 42 }; // Error
    };

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!