Android Question Type DisplayMetrics member name conflict (Still on types)

Saverio

Member
Licensed User
Longtime User
Erel, or somebody else:
(I think there are several guys, in this forum, that can answer my question)

This is the code:
B4X:
Type DisplayMetrics(Density As Float, _
                    densityDpi As Int, _
                    heightPixels As Int, _
                    scaledDensity As Float, _
                    widthPixels As Int, _
                    xdpi As Float, _
                    ydpi As Float)

Yes, I know, Density is a Core library keyword. (Please, avoid any workarounds suggestion) :D

The Question is:
Why does a custom type member should conflict with a keyword?

Thank you
Saverio
 

Saverio

Member
Licensed User
Longtime User
Thanks for reply.

I thought that using same signature in android reference it would be a good reason.
But, might it be I'm wrong. :D

Regards
Saverio
 
Upvote 0
Top