diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-29 17:03:00 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-29 17:03:00 +0200 |
commit | 3537cce27590c6197ffe458ac6cc7dee39040e7b (patch) | |
tree | b780efd8140dc86a9109df48911d696330c5a188 /src/callable.cpp | |
parent | 8cb852a298cf8aa260883c5bc474bcf8cb7f9a76 (diff) |
working with arrays is now almost as simple as it is in PHP
Diffstat (limited to 'src/callable.cpp')
-rw-r--r-- | src/callable.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/callable.cpp b/src/callable.cpp index b4b1a6e..929f39c 100644 --- a/src/callable.cpp +++ b/src/callable.cpp @@ -150,14 +150,22 @@ int Callable::invoke(INTERNAL_FUNCTION_PARAMETERS) int result = do_test(args[1], args[2]); - return SUCCESS; - Value ret(return_value, true); - ret = result; + std::cout << "set property 1" << std::endl; + + ret["a"] = 1; + + std::cout << "set property 2" << std::endl; - // done - return SUCCESS; + ret["2"] = 3; + + std::cout << "done setting properties" << std::endl; + + +// +// // done +// return SUCCESS; } |