Tag Archives: gotcha

Quick Hits: Becareful when returning inc’ed vars

I noticed this in some MonoTouch code that I wrote recently, but I think it makes sense across other languages as well.  Let’s say you write a method that returns an incremented variable like this: private int MyAwesomeFunction(int pVar) { … Continue reading

Share
Posted in MonoTouch, Programming, Quick Hits | Tagged , | 1 Comment