Emulating pointers when the real thing is not allowed

Pete is porting Frodo, a free Commodore 64 emulator, to Microsoft’s Flash-imitator Silverlight. Frodo is originally written in C and uses pointers extensively. Silverlight doesn’t allow pointers, so Pete demonstrates how to emulate them.

Simulating pointers in pointer-free sandboxed platforms is a bit unorthodox, but can make translating code easier…This isn’t something you’re likely to need to do in your own code, but it an interesting exercise in any case.

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.