Only that it probably does more work than necessary. It would be cheaper to do:
function hash(weapon::GameWeapon, h::UInt)
h = hash(weapon.type,h)
h = hash(weapon.damage,h)
return hash(GameWeapon,h)
end
Only that it probably does more work than necessary. It would be cheaper to do:
function hash(weapon::GameWeapon, h::UInt)
h = hash(weapon.type,h)
h = hash(weapon.damage,h)
return hash(GameWeapon,h)
end