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.
Firstly, I assume it should do? Based on this bit from the spec:
Calling
do_size_ofon a reference to a package fails withParseFail(InvalidOperationOnObject { op: SizeOf, typ: Package })(rememberingtypis also the cause of #272, and noting that the match statement does normally handleObject::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.