bearophile Wrote: > auto c = sqrt(a*a + b*b) where { > auto a = retrieve_a(); > auto b = retrieve_b(); > }
the where statement looks as a declaration statement, but scoped block allows arbitrary statements.
bearophile Wrote: > auto c = sqrt(a*a + b*b) where { > auto a = retrieve_a(); > auto b = retrieve_b(); > }
the where statement looks as a declaration statement, but scoped block allows arbitrary statements.