[INTERPRETER]

* NEW: Static unknown properties can be used in a dynamic context now.


git-svn-id: svn://localhost/gambas/trunk@4897 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-07-04 22:06:19 +00:00
parent 6fd31cfe59
commit fa67280e7a
2 changed files with 2 additions and 2 deletions

View file

@ -278,7 +278,7 @@ _POP_UNKNOWN_PROPERTY:
*SP = SP[-2];
PUSH();
EXEC_special(SPEC_UNKNOWN, class, object, 1, TRUE);
EXEC_special(SPEC_UNKNOWN, class, class->unknown_static ? NULL : object, 1, TRUE);
goto _FIN;
_NOT_A_PROPERTY:

View file

@ -108,7 +108,7 @@ _PUSH_GENERIC:
if (SP->_boolean.value)
{
SP--;
EXEC_special(SPEC_UNKNOWN, class, object, 0, FALSE);
EXEC_special(SPEC_UNKNOWN, class, class->unknown_static ? NULL : object, 0, FALSE);
VALUE_conv_variant(&SP[-1]);
OBJECT_UNREF(object, "EXEC_push_unknown");
goto _FIN;