Shouldn't TextInputTarget::getKeyboardType() be declared 'const'?


#1

Hello Jules,

I believe TextInputTarget::getKeyboardType() should be declared const.

 


#2

No, it shouldn't.

It's a virtual method, so I don't know what people will need to do in that method in their subclasses. Maybe someone will need to use some non-const behaviour in there - it'd be wrong for me to prevent that by making the base class method const.


#3

OK, you win! :)