[Coco] DEF USR and strings?
Sean Conner
sean at conman.org
Wed Oct 29 21:49:27 EDT 2025
It was thus said that the Great Allen Huffman via Coco once stated:
> > On Oct 29, 2025, at 6:15 PM, Bruce Borer via Coco <coco at maltedmedia.com> wrote:
> >
> > I do not know what can and cannot be done (yet) but can you pass the
> > address (number) of the string and use the pointer in USRn to do what you
> > want?
>
> Yes, the way we’ve always done it is to use VARPTR. I have an article
> series on my site where I dove into how that worked.
>
> But, earlier this year I saw someone post saying you didn’t need to use
> VARPTR. That stuck in the back of my mind until I had time to revisit the
> subject (now). That would make things much easier.
Yes, that probably was my blog posts:
https://boston.conman.org/2024/11/26.2-3
where I go into how to use DEFUSR with Color BASIC and Extended Color BASIC.
-spc
More information about the Coco
mailing list