by gramps » Tue Oct 30, 2018 8:36 pm
Huh, that's weird...
Just searching the git repo, it looks like the error comes from
here, and as far as I can tell tracking it back from there, it can't convert that array pointer to a container, because it doesn't have a "TYPE_Container" flag. An array sounds like a container to me, and i guess pointers are supposed to be automatically dereferenced, so it looks like an oversight (or just not implemented yet).
Can also confirm what m8f said; try adding
Array<Object> qux; qux = arr;
Huh, that's weird...
Just searching the git repo, it looks like the error comes from [url=https://github.com/coelckers/gzdoom/blob/dd719f0f142546e9426a754d42973ba9ed8a4117/src/scripting/backend/codegen.cpp#L8373]here[/url], and as far as I can tell tracking it back from there, it can't convert that array pointer to a container, because it doesn't have a "TYPE_Container" flag. An array sounds like a container to me, and i guess pointers are supposed to be automatically dereferenced, so it looks like an oversight (or just not implemented yet).
Can also confirm what m8f said; try adding [i]Array<Object> qux; qux = arr;[/i]