Here Be Signed Dragons

While porting the PalmOS game Elite for PumpkinOS I stumbled upon a subtle bug. Consider this simplified code: If PrefGetAppPreferences returns noPreferenceFound, meaning the requested preference was not found, what is it going to be? If or Else? It turns out the answer depends on the environment on which the application runs. If this code … Continue reading Here Be Signed Dragons