View Single Post
 
Old 12-03-2016, 10:24 PM
Cerian Knight's Avatar
Cerian Knight Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

Just an opinion, but your function definition seems too narrow. Yes, you might be able to solve this with overrides (though I'm not sure if return overrides exist) or something else. Why not just change this function definition or write another function called 'WhyIsNumberNotValid' (or, better yet, 'GetLastInvalidNumberErrorMessage') that returns a string?
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote