Ticket #916 (closed bug: done)

Opened 5 years ago

Last modified 4 years ago

Need something like PMCNULL for STRINGs

Reported by: dukeleto Owned by:
Priority: normal Milestone:
Component: core Version: 1.4.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

I talked to chromatic about occasionally getting a null byte '\0' back when a Parrot STRING was expected and he said this was because parrot has no concept like STRINGNULL.

Change History

Changed 5 years ago by NotFound

You can hardly get a byte when a STRING * is expected, you get a NULL pointer, unless your code is very broken.

Of course, NULL is numerically zero and the same for '\0'.

Having a STRINGNULL value other than (STRING *) NULL is pointless in the current implementation because Parrot string have no vtables or similar mechanics.

Changed 4 years ago by plobsing

  • status changed from new to closed
  • resolution set to done

Parrot now has a STRINGNULL whose behaviour more or less emulates PMCNULL.

Note: See TracTickets for help on using tickets.