Page 4 of 4

Re: Double-quotes in strings

Posted: Sat Mar 09, 2013 12:11 am
by Kiffi
How about writing a Preprocessor which replaces double-quotes or
escape-sequences or whatever you want in the source code to
standard PB string concatenation?

This Preprocessor can start as a PB-Tool (Trigger: Before run/compile).

Just a suggestion ... Kiffi

Re: Double-quotes in strings

Posted: Sat Mar 09, 2013 3:00 am
by BorisTheOld
RichAlgeni wrote:
BorisTheOld wrote:the last thing we need is for PB to be substituting "random" characters in quoted strings. That would not make me happy a happy programmer.
Boris is apparently a 'glass is half empty' kind of guy. Obviously this wouldn't be a 'random' character, it would need to be defined in someway, so that the compiler knew what it was.
Yes, some (most) of my friends regard my glass as being half empty. :) , but I think I have a valid concern.

I don't want PB to be replacing my own special character sequences with what are to me "random characters", just because PB thinks they are PB escape codes.

Fundamental changes like this should be carefully thought out before implementing them.

Compiler override flags, I think, will be needed for many new features, just to prevent existing code from being broken.

Re: Double-quotes in strings

Posted: Sat Mar 09, 2013 3:36 am
by MachineCode
Kiffi wrote:How about writing a Preprocessor
But then you can't share your code on the forums.

Re: Double-quotes in strings

Posted: Sat Mar 09, 2013 11:23 am
by Kiffi
MachineCode wrote:But then you can't share your code on the forums.
you can share the preprocessor-output.

Greetings ... Kiffi