4 ms·
Do you mean something like this? http://ideone.com/8tPPHy http://ideone.com/8tPPHy
by merogin 11y ago
Do you mean something like this? http://ideone.com/8tPPHy http://ideone.com/8tPPHy
- nice_byte 11y agoYes. It seems to work, but it might be a coincidence. The order of argument evaluation is undefined. It might be that the exception gets thrown before the ownership is transferred, but it's just luck. I have modified your example a bit, to better trace what's happening: http://ideone.com/tgh0xe http://ideone.com/tgh0xe
- merogin 11y agoAnd it won't work when switching the parameter order of byval, so you're correct. That's quite nasty.