Ticket #1193 (closed RFC: done)
Setting PMC to NULL STRING
|Reported by:||NotFound||Owned by:|
Today I found a bug: this programs dies with an assertion failure in a debug build:
.sub foo .local string s .return(s) .end .sub main :main .local pmc p p= foo() .end
I located the problem in the CallSignatureReturns PMC and quick fixed in r42253 by setting PMCNULL when the STRING value is NULL. However I'm not sure if this is the desired behavior, or will be better to create an HLL mapped String type.
This also remembered me a pending question: when setting a String PMC to a NULL STRING, or leave uninitialized, what is his desired value? An empty string or a NULL string?
That question is for the core String PMC, HLL can choose whatever they want for his mapped type, I suppose.