2 ms·
50 getters are defined on DATA: a1..e5, and A1..E5 Consider the formula =A1+A2 inside the getter we have: with(DATA) eval('A1+A2'); Which is basically t
by jcampbell1 13y ago
50 getters are defined on DATA: a1..e5, and A1..E5
Consider the formula =A1+A2
inside the getter we have:
with(DATA) eval('A1+A2');
Which is basically the same as:
eval('DATA.A1+DATA.A2');
Inside the eval, the getter for A1, and A2 will be called. This will continue until non-formulas are reached and value is returned. The other possibility, is you get an infinite amount of recursion, which causes an error that is caught in the try/catch block. For instance, if you put =A1 in A1, the DATA.A1 getter gets called 1000's of times, eventually causing a stack overflow, which is caught by the try/catch block.