Page 1 of 1

Return from include script and include scripts limitation?

Posted: Wed Nov 30, 2016 5:48 am
by Damien
I need some clarification on return from include script limitation.
As documentation says, "Include scripts cannot refer to themselves or one another recursively".

I understand a script must not be recursivly called, even by an other include (script 1 - include ⇒ script 2 - include ⇒ script 1).

But is Script 1 - include ⇒ Script 2 - include ⇒ Script 3 allowed (with all scripts are returning a value)?
It seems to work when build on IDE, but I probably found a bug, but if it is not allowed... it is not really a bug :).

Re: Return from include script and include scripts limitation?

Posted: Wed Nov 30, 2016 1:33 pm
by FrancescoT
Dear Damien,

this means that it's not possible to recursively call a script, from the same identical script or from one another recursively.

For example;

- having SCRIPT ONE, you cannot recursively include SCRIPT ONE in SCRIPT ONE

- having SCRIPT ONE and SCRIPT TWO, you cannot recursively include SCRIPT TWO in SCRIPT ONE if SCRIPT TWO includes SCRIPT ONE.

...hope it's clear :D !

regards.

Re: Return from include script and include scripts limitation?

Posted: Thu Dec 01, 2016 7:39 am
by Damien
Thanks for informations :)

So there is a bug, I did a new post to not mix questions/problems :
viewtopic.php?f=2&t=10830

Hope it will help to improve IA!

Re: Return from include script and include scripts limitation?

Posted: Tue Dec 06, 2016 6:32 am
by FrancescoT
Dear Damien,

this should be fixed now.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10831

Many thanks for reporting this to us.

Regards