Skip to content

SizeOf on a reference to a package doesn't work #282

@martin-hughes

Description

@martin-hughes

Firstly, I assume it should do? Based on this bit from the spec:

SizeOfTerm :=
    SizeOf (
    DataObject // SuperName => <string | buffer | package>
    ) => Integer

Calling do_size_of on a reference to a package fails with ParseFail(InvalidOperationOnObject { op: SizeOf, typ: Package }) (remembering typ is also the cause of #272, and noting that the match statement does normally handle Object::Package)

If you agree that it should work, @IsaacWoods, then this should be a straightforward fix in do_size_of - or could be rolled up into the other References work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions