ID:2970173
 
Applies to:ByondAPI
Status: Open

Issue hasn't been assigned a status value.
A function to get a reference to the variable itself, rather than the stored value. We already have ReadPointer and WritePointer, so why must we jump through Byond_CallGlobal() hoops to actually GET a pointer for these?
I like it. Only thing is it'll need different versions for different pointer types, and I don't know that some are doable in soft code. These are the pointer types BYOND uses:

- object.var
- list[index]
- global var
- proc var
- proc arg
- proc usr
- proc src
- proc .

I might be forgetting one. Anyway there's really no way to grab a /callee's local vars by name, and usr/src/. pointers seem like they'd be iffy, but the first three would be very good Byondapi targets.

Probably the way I'd handle this would be one call with an enum for the pointer type.

Login to reply.