mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
Would it be possible to add 'operator int16' to Value? I often want to read directly from a ctrl into a data structure containing shorts and writing (short)(int) everywhere is ugly and annoying. Converting the other way works fine as it's an up-cast.
I've added it to my version without issue, but is there some subtle problem I'm missing?
mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
luzr wrote on Tue, 06 May 2008 18:48
I have to say I am hesitating about this a lot... (that is why I did not reply yet).
I guess we do not want to support all numeric types in Value... And int16 does not have a Null...
I do not know.
Mirek
Okay, it's no biggy and I guess most people don't have the need anyway. I was mainly curious about why it wasn't there to begin with, I'd forgotten about Nulls.