[Interest] 5.4.2 Android Misery just one typo away
Sascha Cunz
sascha at cunz-rad.co.uk
Tue Jun 16 17:40:09 CEST 2015
On 2015-06-15 19:10, Thiago Macieira wrote:
> On Monday 15 June 2015 10:17:48 mark diener wrote:
>> It WILL compile on all the platforms, runs fine on OSX/IOS Simulator,
>> but
>> on Android it will surely DIE.
>
> In addition to what the others said, "run fine" is missing a
> characterisation.
> Your program is running under undefined behaviour because the
> requirement
> applies to all platforms, not just Android.
>
> it just so happens that one of the possible undefined behaviours is to
> run
> exactly like you expected it to.
Good explanation!
I wish this was yet more prominent in the docs. It took me actually 2
years to figure out that exactly this had been the cause that some of my
command line tools kept randomly crashing on all desktop platforms.
Sascha
More information about the Interest
mailing list