?"Hello"&-1

new topic     » topic index » view thread      » older message » newer message

There have been a few releases of Phix now with ?{65,66,67} printing {65,66,67} instead of {65'A',66'B',67'C'}.
Conversely pp({65,66,67}) has been printing {65'A',66'B',67'C'} and I've had to use pp({65,66,67},{pp_IntCh,false}) to get {65,66,67}.
I'm going to flip that behaviour back, and make pp_IntCh default to false - any objections? (I'll be slightly surprised if there are...)

Proposed new behaviour:

?{65,66,67}                         -- {65'A',66'B',67'C'}      \ these were 
pp({65,66,67},{pp_IntCh,false})     -- {65,66,67}               /  flipped 
pp({65,66,67})                      -- {65,66,67} 
pp({65,66,67},{pp_IntCh,-1})        -- {'A','B','C'} 
pp({65,66,67},{pp_IntCh,true})      -- {65'A',66'B',67'C'}     -- previous default 

Obviuously actual strings were and still are shown as actual strings:

?"Hello"        -- "Hello" 
pp("Hello")     -- `Hello` 

(pp() now prefers backticks over doublequotes to minimise excessive escaping)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu