Re: [swift-users] Defer Question

2015-12-07 Thread Joe Groff via swift-users
> On Dec 7, 2015, at 10:29 AM, Ezekiel Elin via swift-users > wrote: > > Is there any way for me to identify what value is/will be returned by the > function in a defer block > > here’s some example code > > func someFunction() -> Int { > defer { > //Can I get the "5" that I'm re

[swift-users] Defer Question

2015-12-07 Thread Ezekiel Elin via swift-users
Is there any way for me to identify what value is/will be returned by the function in a defer block here’s some example code func someFunction() -> Int { defer { //Can I get the "5" that I'm returning here? } return 5 } - Ezekiel