-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PropertySet.getArray to return all types
In updating code to use `PropertySet.getArray` or `getScalar`, instead of `get`, I realized that the best thing `getArray` can do with items that are neither numeric or scalar (e.g. `PropertySet` or `PropertyList`) is return them, preferably as a scalar. This allows one to retrieve all known information about any item in a container by calling `getArray`. Formerly this was difficult: you would have to first determine the data type (e.g. by calling `getScalar`) then call `getArray` if the type was numeric or string.
- Loading branch information
Showing
2 changed files
with
12 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters