If you need cheap and simple way to figure out that attribute was missing, change API to return value by out parameter and turn normal return value into boolean success flag.
You have forgot to mention what behavior you are actually trying
to achieve ;) Common not-so-meaningful value is simply T.init ,
but there can be no such thing as generic sentinel.
- Templates: generic "return null;" Chris
- Re: Templates: generic "return null;" Stanislav Blinov
- Re: Templates: generic "return null;" Chris
- Re: Templates: generic "return null;&qu... Stanislav Blinov
- Re: Templates: generic "return null;" Dicebot
- Re: Templates: generic "return null;" TheFlyingFiddle
- Re: Templates: generic "return null;" Marco Leise