Timeline for How to write constructors which might fail to properly instantiate an object
Current License: CC BY-SA 2.5
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 31, 2016 at 21:09 | comment | added | avtomaton | in your case if load(..) is failed, we have totally useless object. I'm not sure that I want sprite without any sprite... But the question looks more like holywar subject than real question :) | |
| Mar 21, 2011 at 16:01 | vote | accept | pseudosudo | ||
| Mar 20, 2011 at 23:26 | history | answered | Nick Bedford | CC BY-SA 2.5 |