Why Throwable.message is not a property

uranuz neuranuz at gmail.com
Wed Mar 17 17:46:27 UTC 2021


The question is why Throwable.message is not a @property?! It 
looks strange now, because "message" is not a *verb*, but a 
*noun*. So it's expected to be a property. Also because it is not 
a property in some contexts when I try to concatenate it with 
string without parentheses using "~" operator it fails, because 
(as you could expect) it is a *regular* function, but not a 
property.

I wonder if it was made as *non-property* by some reason or by 
oversight?

Thanks


More information about the Digitalmars-d-learn mailing list