You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mod =Symbol(_typename_str, last(_typename_str) =='s'?"es":"s")
This is not ideal as the scoped enums often correspond to enums which are named and defined in a FlatBuffer schema file. Having custom rules to rename these names are confusing, and the renaming functionality must be shared by code generating functionality.
Suggested fix: Let the wrapping module share name with the enum name (as used in the flatbuffer schema), and let the primitive type (which lives inside that module) have the same name with a leading underscore. Accessing the enum values would thereby feel the same to the end user as before the 2.2.1 change (before 2.21 it was calling getproperty on an exported primitive type, with the proposed change one would access the a constant value inside a module).
The text was updated successfully, but these errors were encountered:
Context: The Arrow.jl 2.2.1 release changed the behavior of
@scopedenums
used in theFlatBuffer
submodule, to remedy a type piracy issue. #267This change introduced a couple of issues:
arrow-julia/src/FlatBuffers/FlatBuffers.jl
Line 148 in f88a62e
Suggested fix: do not export the enum values by removing the above line
s
ores
arrow-julia/src/FlatBuffers/FlatBuffers.jl
Line 125 in f88a62e
This is not ideal as the scoped enums often correspond to enums which are named and defined in a FlatBuffer schema file. Having custom rules to rename these names are confusing, and the renaming functionality must be shared by code generating functionality.
Suggested fix: Let the wrapping module share name with the enum name (as used in the flatbuffer schema), and let the primitive type (which lives inside that module) have the same name with a leading underscore. Accessing the enum values would thereby feel the same to the end user as before the 2.2.1 change (before 2.21 it was calling getproperty on an exported primitive type, with the proposed change one would access the a constant value inside a module).
The text was updated successfully, but these errors were encountered: