Re: Enum Structs Available This Holiday Season
|
Re: Enum Structs Available This Holiday Season
Quote:
Quote:
|
Re: Enum Structs Available This Holiday Season
You never gave blocksize to the ArrayList constructor.
|
Re: Enum Structs Available This Holiday Season
Quote:
It helps if you know arrays are a reference type. When I say that, I mean when you do this: PHP Code:
|
Re: Enum Structs Available This Holiday Season
Quote:
|
Re: Enum Structs Available This Holiday Season
BAILOPAN, great update, so handy, btw can we wait some update in methodmaps part ? We need some improvements there, something look like a clases with proper constructor and destructor or may be a posibility to create values inside a methodmap class, like in a new struct and use them only there
|
Re: Enum Structs Available This Holiday Season
methodmaps != classes
While 'enum structs' can hold multiple values because they are arrays, methodmaps can only hold one. If you want to store something *in* methodmaps use StringMap's (or any other list). StringMap's are more readable. Example: PHP Code:
PHP Code:
|
Re: Enum Structs Available This Holiday Season
New-style enum structs having a "methodmap" built-in is meant to solve the problem of methodmaps not having storage - what is lacking?
|
Re: Enum Structs Available This Holiday Season
Quote:
|
Re: Enum Structs Available This Holiday Season
I can't help but notice when I try to include an enum struct in a native definition that the compiler tells me that I can't do this:
Code:
error 135: cannot use enum struct type "MapChoices_GetMapData" in natives Also, the error is reporting the native name rather than the enum struct name. |
All times are GMT -4. The time now is 05:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.