Opened 18 years ago
Last modified 15 years ago
#95 closed defect (fixed)
getDi?mension() should return DimensionType — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | main |
Severity: | Significant | Keywords: | imported, phpbugtracker |
Cc: |
Description
I'd suggest to provide better type safety in getDimension() functions. Now, it returns unsigned int or int type. But in fact, it returns values equvalent to enumerators from Dimension::DimensionType enum. So, why not to return Dimension::DimensionType itself instead of int? Example: Dimension::DimensionType getDimension() { return Dimension::P } Digression: Java was a condemned language related to this feature until latest Java 5.0. Just now Java 5.0 provides type safety related to enums. In previous version there were no real enums. So, I'd suggest to not to continue this condemnation in C++.
Note:
See TracTickets
for help on using tickets.