qore icon indicating copy to clipboard operation
qore copied to clipboard

db modules should return hashes and lists with subtype auto

Open davidnich opened this issue 5 years ago • 1 comments

they are returned untyped lists and hashes which enforces type stripping when the values are used as the basis for a new list or hash

davidnich avatar Jun 24 '19 06:06 davidnich

one problem is the abstract base classes were developed before complex types were implemented and have return types like list and hash

the best solution will probably be to make it a warning instead of an error to have a mismatched return type like hash for a base type like hash<auto> and change both the return types in the abstract classes and the modules at the same time

davidnich avatar Jul 30 '19 06:07 davidnich