Impossible to do recursion with function object?

For questions about using Classic.

Post » Fri Mar 13, 2009 10:01 pm

I tried to test recursive function objects and implemented a n'th factorial example.

[url:1bfylsdb]http://www.scirra.com/phpBB3/download/file.php?id=409[/url:1bfylsdb]
but it fails

Is it possible to implement recursive functions with the function objects?
B
4
G
3
Posts: 46
Reputation: 992

Post » Fri Mar 13, 2009 10:18 pm

It was a bug. You can recurse with ordinary "call function" actions, but not expressions. It's fixed in the next build, so your example will work then.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Mar 13, 2009 10:46 pm

I actually also had problems doing recursion with ordinary call function actions. I threw the example away so I will see if i can recreate it again.
B
4
G
3
Posts: 46
Reputation: 992


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests