meson-plus-plus icon indicating copy to clipboard operation
meson-plus-plus copied to clipboard

function_argument_walker should start from innermost, not outermost argument call chain

Open dcbaker opened this issue 3 years ago • 0 comments

if you have something like

files(files(files(files('foo')))

It currently takes four loops to resolve this, because the evaluation order is from outside to inside (the simplest solution). However, by simply resolving from innermost files call first, we can avoid 3 iterations of the optimizer, since we can lower the whole thing to [File{'foo'}] on the first pass

dcbaker avatar Feb 03 '22 23:02 dcbaker