Skip to content

XDLTypes adding themselves to types array #64

@ahuston-0

Description

@ahuston-0

Just pushed in f7bd03a and came across a weird instance. Apparently, we previously created XDLTypes and then added them to the type array in the constructor. Is there a particular reason why we decided to do this in the constructor of adding them externally? Only asking because the syntax looked something like types.add(this) and XDLType::classInit was filled with lines resembling new U8(). Seems like it would have been easy to end up with a dangling reference if something bad ever happened to the types array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions