Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4919 Näkymät

Given an object with multiple function fields, what is the computation order, or is it arbitary?

If it is arbitrary, should the developer pay extra attention and avoid using function field values within the other function fields of the same object?

Avatar
Hylkää
Tekijä Paras vastaus

Upon investigation, it appears that the order of calculations depends on the priority set in each line of the store argument. so if  you want a function field to compute before another, the priorities need to be lower, or higher if you want the opposite.

In conclusion, if you want to force a computation order, then define the priority argument in the store argument, otherwise if you just set store to True then the computation will be arbitrary since they all have the same default priority 10

Avatar
Hylkää