www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - problems with nothrow

reply "Namespace" <rswhite4 googlemail.com> writes:
It seems that nothrow functions/methods which take a AA have some 
problems with .length and opApply, but I'm not sure if I should 
report it as a bug.

Here the code:
http://dpaste.dzfl.pl/a61e721e
http://dpaste.dzfl.pl/3652fcc4
Sep 17 2012
parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Monday, September 17, 2012 22:59:31 Namespace wrote:
 It seems that nothrow functions/methods which take a AA have some
 problems with .length and opApply, but I'm not sure if I should
 report it as a bug.
 
 Here the code:
 http://dpaste.dzfl.pl/a61e721e
 http://dpaste.dzfl.pl/3652fcc4
length should definitely be nothrow. Whether opApply can be nothrow or not may depend on the type of the AA. I don't know. It would depend on what it does and how much of it depends on the types of the keys or values. - Jonathan M Davis
Sep 17 2012