Y
Hacker News
new
|
ask
|
show
|
jobs
by
EponymousCoward
5285 days ago
throw new BathwaterException(new Baby()) ?
1 comments
jcarreiro
5284 days ago
No no no. Always throw by value, and catch by reference. Like this:
throw BathwaterException(Baby());
Wait, we are talking about C++ programming, right? ;)
link