Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Wednesday, April 21, 2010

C# foreach

The data type in foreach isn't just a shortcut, you have to use it:

foreach (int i in intarray)

It won't compile if you predeclare int i and just use (i in intarray) in the loop expression.

Followers

Blog Archive