Hi,
I defined a simple function:
function foo($a) {
Write-Host $a
}
and I am a bit confused by the results of the following invocations:
$b = 123
foo $b
foo ++$b
The second function call prints "++123", while I sincerely expected "124".
I'm sure this is a beginner's questions, but what is wrong with my function?
Thank you!