Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4816 Zobrazení

We have this scenario where users define a formula, and then they can include it in a new formula by referencing its code, this operation can ocurr (currently) limitless times. Based on the analyses made, we can expect less than 300 levels of referencing depth.

We're working on the reverse operation now, that is, replacing the codes in a formula for the actual operations described in the referenced formula. Naturally, this should continue until no more codes are found.

Would a recursive function be safer than a single loop? Consider that we need to use the ORM search and browse to find every formula needed.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
led 16
10442
3
čvn 15
21260
0
srp 15
4675
0
zář 19
98
1
čvc 17
4226