Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
EponymousCoward
· 14y ago · 0 comments
throw new BathwaterException(new Baby()) ?
Comments
[–]
jcarreiro
14y 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? ;)