Need a string_unescape function returning c-string
kjstol
parrotcode at gmail.com
Wed Jan 14 09:59:54 UTC 2009
On Wed, Jan 14, 2009 at 9:52 AM, kjstol <parrotcode at gmail.com> wrote:
>
>
> On Wed, Jan 14, 2009 at 12:54 AM, chromatic <chromatic at wgz.org> wrote:
>
>> On Tuesday 13 January 2009 15:09:24 kjstol wrote:
>>
>> > PIRC absolutely needs this, and in that case it's absolutely safe to
>> use,
>> > as there is no encoding yet: I'm now converting the c-string into a
>> STRING
>> > (because that's what the unescaping function happens to return) , to
>> then
>> > convert it back into a c-string. Not useful. Not efficient.
>>
>> I don't buy that; when PIRC parses PIR/PASM, there's definitely an
>> encoding in
>> place. It just so happens that the current assumption is likely always
>> Latin-1, which won't work everywhere in the future.
>>
>> What are you doing with C strings that you can't do with STRINGs?
>>
>> -- c
>
>
> Nothing special. Strings are stored as char * in the abstract syntax tree.
> Changing that would mean changing *a lot* of code.
>
> kjs
>
well.. it seems that there's at least 2 persons not very much in favor of
c-strings, to make an understatement. I guess I should look into changing
PIRC then.
kjs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.parrot.org/pipermail/parrot-dev/attachments/20090114/ec561f6d/attachment.htm
More information about the parrot-dev
mailing list