Tuesday, January 19, 2016

PowerShell riddles

PowerShell riddle 1

If ( $x.$x($x,$x–eq $x ) { <# What is $x? #> }

It is a true equality; no type conversion is performed for the comparison.

PowerShell riddle 2

If ( $y.$y($y,$y.$y($y)) -eq 0 ) { <# What is $y? #> }

Again, it is a true equality; no type conversion is performed for the comparison.


Big hint to both riddles.

No comments:

Post a Comment