Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[svn ci] (r11911) .None PMC now returns empty string instead of "None" for get_string

1 view
Skip to first unread message

Jerry Gay

unread,
Mar 16, 2006, 1:22:33 PM3/16/06
to p6i
previously, the get_string method of the .None PMC returned "None".
it's been modified to return the somewhat more sane "", or empty
string. this may affect code using .Hash PMCs, as the get_string
method of the .None PMC is called when the value of a non-existant
hash key is requested in string context. for example:

P0 = new .Hash
S0 = P0['abc']
eq S0, '', OK
print 'not '
OK: print 'ok'
end

## prints 'ok'

all affected tests and library files have been modified.
~jerry

0 new messages