Skip to content

Null termination issues in StaticString #2

@tshort

Description

@tshort

Here are some notes:

  • getindex doesn't add a null termination as noted in a comment.
  • display is broken without null termination. Maybe this should use length instead of the termination.
  • length should be N-1 and not count the null at the end.
  • Should codeunits include the termination? It doesn't for a String.

Could the null termination be removed? I don't think Julia strings need it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions