Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualParadigm Shifter

Posted 01 May 2013 - 01:31 PM

Here's what the casts should have been called anyway:

 

static_cast: do_what_you_think_i_mean_and_by_the_way_one_thing_it_is_not_is_static_cast

reinterpret_cast: do_what_i_say_cast

const_cast: i_just_tried_to_annoy_you_by_lying_earlier_about_the_const_thing_cast

 

C-style cast: impossible_to_grep_for_cast. Java and C# really missed the boat on this one by not making it easier to do a search for casts. Visual Studio still hasn't got a "find any cast" search facility, which would be rather handy.


#1Paradigm Shifter

Posted 01 May 2013 - 01:28 PM

Here's what the casts should have been called anyway:

 

static_cast: do_what_you_think_i_mean_and_by_the_way_one_thing_it_is_not_is_static_cast

reinterpret_cast: do_what_i_say_cast

const_cast: i_just_tried_to_annoy_you_by_lying_earlier_about_the_const_thing_cast

 

C-style cast: impossible to grep for cast. Java and C# really missed the boat on this one by not making it easier to do a search for casts. Visual Studio still hasn't got a "find any cast" search facility, which would be rather handy.


PARTNERS