[Development] Qt 5.9's new garbage collector documentation? + root_ptr
Phil Bouchard
philippeb8 at gmail.com
Thu Jul 13 01:28:34 CEST 2017
On 07/12/2017 10:58 AM, Phil Bouchard wrote:
> Phil Bouchard <philippeb8 at gmail.com> wrote:
>> On 07/11/2017 04:02 AM, Tim Blechmann wrote:
>>>> On the other hand, I have good news as I think I have found a way to
>>>> simulate functions that return a function.
>>>
>>> how to you cope with structures like:
>>>
>>> function foo( outObject )
>>> {
>>> var object = {}
>>> outObject.object = object
>>> outObject.result = function() { return object }
>>> return function() { return bar( object ) }
>>> }
>>
>> I just manually wrote an emulation of Javascript code in C++ here:
>> https://github.com/philippeb8/root_ptr/blob/qt/example/javascript_example1.cpp
>
> I'll do some code cleanup tonight; it'll be much more readable regarding
> return values.
The code is much more readable now:
https://github.com/philippeb8/root_ptr/blob/qt/example/javascript_example1.cpp
More information about the Development
mailing list