On Sun, Apr 23, 2017 at 8:57 AM, Erich Steinböck <erich.steinbo...@gmail.com
> wrote:
> Our Programmer's Guide says that `context->StringData(obj)`
> "returns a read-only pointer to the String object's string data".
>
> Am I correct, that, to be precise, this means, that the data pointed to, *must
> not* be modified?
>
Correct. "read-only pointer" is probably not the best wording, since the
pointer may be modified but the storage it points to must not be.
>
> Am I also correct, that the string data returned, *does* have a trailing
> NUL character (although this doesn't mean it can be seen as a standard C
> string, as the data itself - like any Rexx string - may contain embedded
> NUL characters)?
>
Correct on both points.
>
>
>
> Also, rexxpg documents `context->NewString()` to take one or two args,
> but I don't think `obj = context->NewString(str)` works.
>
> On the other hand rexxpg misses documentation for `
> NewStringFromAsciiz(str)`, which is used throughout all of our code.
>
> Am I correct, that the former should be removed, and the latter added?
>
I believe the second form is the documentation for NewStringFromAsciiz, but
there is a spelling problem with the name :-)
Rick
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel