[Swift-devel] strange behavior evaluating function call as trace arg

Ben Clifford benc at hawaga.org.uk
Sun Feb 8 05:28:32 CST 2009


On Sat, 7 Feb 2009, Mihael Hategan wrote:

> Here's a patch. It allows procedure invocations in expressions.
> 
> http://www.ci.uchicago.edu/~hategan/invoke-proc.patch

In the test in the below patch, I get a conflict with the use of $ for 
more than one purpose. The use in the nested procedure call upsets 
getThreadPrefix which is expecting it to contain something else (if it 
exists). Renaming that variable (as the below patch does) makes the test 
run ok for me.

http://www.ci.uchicago.edu/~benc/invoke-proc-test-fix-1

(its not a very good test as it doesn't check the output is correct, but 
it suffices for the purposes of this precise bug)

-- 



More information about the Swift-devel mailing list