Page MenuHomeFeedback Tracker

[Feature Request] Add support for more types for hashValue and hashmaps
New, NormalPublic

Description

https://community.bistudio.com/wiki/hashValue supports a lot of types, but notably locations, controls and displays are missing. Can those be supported too?

https://community.bistudio.com/wiki/HashMap#Supported_Key_Types If hashValue supports objects and groups, can't hashmaps support them natively too? What about locations, controls and displays?

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
Feature Request

Event Timeline

johnb43 created this task.Jun 17 2024, 2:05 PM
johnb43 renamed this task from [Featurure Request] Add support for more types for hashValue and hashmaps to [Feature Request] Add support for more types for hashValue and hashmaps.
dedmen added a subscriber: dedmen.EditedJul 5 2024, 6:13 PM

objects, groups, controls and displays can become null. That's why they are not allowed as keys in hashmaps.

What hash would you expect for a display?
If you close the display and reopen it. Would the new one have the same hash?
Afterall its the same "thing" ?

Would the new one have the same hash?

I'd say no, as it's a different instance of the same thing - otherwise imo all objects should have the same hashValue.

But yea, it makes sense not to allow those types. I imagine the same is true for locations, so this ticket can be closed.