[fdo-users] My FDO Toolbox presentation from FOSS4G online

Jackie Ng jumpinjackie at gmail.com
Sun Nov 8 19:24:35 EST 2009


It's just some random code sample on stackoverflow that I found quite amusing
:-)

- Jackie


john spitzer wrote:
> 
> Talking about const correctness. If you don't like it that way there
> is always the old reverse the conditional's order i.e.
> 
> void foo(int DEVCON)
> {
>        if (1=DEVCON) //< FLAGGED AS COMPILER BUG! WORLD SAVED!
>   {
>        fire_missiles();
>    }
> 
> }
> 
> On Mon, Nov 9, 2009 at 9:59 AM, Jackie Ng <jumpinjackie at gmail.com> wrote:
>> Hi All,
>> For those of you who could not attend FOSS4G 2009, my presentation on FDO
>> Toolbox is now online.
>> http://themapguyde.blogspot.com/2009/11/my-foss4g-presentation-recorded-and.html
>>
>> Many thanks to the folks from FOSSLC for recording this (and many other
>> presentations) at the event.
>> - Jackie
>> --
>> Blog: http://themapguyde.blogspot.com
>> LinkedIn: http://www.linkedin.com/in/jackieng
>> Twitter: http://twitter.com/jumpinjackie
>>
>> Why const correctness is good:
>>
>> void foo(const int DEFCON)
>> {
>>   if (DEFCON = 1)     //< FLAGGED AS COMPILER BUG! WORLD SAVED!
>>   {
>>       fire_missiles();
>>   }
>> }
>>
>>
>> _______________________________________________
>> fdo-users mailing list
>> fdo-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>>
>>
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/My-FDO-Toolbox-presentation-from-FOSS4G-online-tp3970262p3970477.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list