Closed GoogleCodeExporter closed 8 years ago
This may take a bit of thought as to how to do it nicely. It may need to wait
until xpost_dict is moved to the library. It will require overriding the normal
behavior of xpost_object_get/set_access() with a new function that looks up the
dict's metadata in vm.
The (only) model (I can think of) is the way the free-list allocator overrides
the memory-table allocator, by adding a function-pointer, a flag, and a
registration function. files will also need to use this access semantics, I
think. So I think the override functions should also specify the object type
that should use this function. So, perhaps it should be a vector of
function-pointers, predefined to use the default access get/set pair, but
automatically called through the table.
Original comment by luser.droog
on 18 Jan 2014 at 7:58
I've implemented the shared access field in VM.
But I did not add the invalidaccess error, because then xpost can't load
systemdict.
I must be setting it to readonly too early somewhere.
Original comment by luser.droog
on 22 Feb 2015 at 9:04
This is long fixed. There is a specific exception in the PLRM for userdict to be defined in systemdict, which otherwise violates the locals in globals prohibition.
Original issue reported on code.google.com by
luser.droog
on 30 Oct 2013 at 9:21