I think Andy's post is going through moderation, but I can still reply to
it. :)

> Date: Tue, 16 Apr 2002 21:01:11 +0100
> From: Andy Wardley <[EMAIL PROTECTED]>
> To: Dan Sugalski <[EMAIL PROTECTED]>
> Cc: Mike Lambert <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: [PATCH] Assembler Strings
>
> On Tue, Apr 16, 2002 at 02:57:42PM -0400, Dan Sugalski wrote:
> > >b) 'a\"b' was printing being stored as a\"b and not a"b
> >
> > The patch for the first looks good, but I'm not sure about the
> > second. Have we settled on the behavior of single-quoted strings?
>
> Don't know about "settled" but I suggest that the previous behaviour
> was the correct one.  The only characters that should be escaped in a
> single quoted strings are C<'> and C<\>.  Anything else is literal.
>
> e.g.
>
>   'foo\'bar\\ping\"pong'   => foo'bar\ping\"pong
>        ^    ^     ^
>        yep  yep   nope

You're arguing for an implementation of the previous behavior. What you
describe is neither before nor after, but somewhere in the middle. :)

Before, it did: foo\'bar\ping\"pong
Now it does:     foo'bar\ping"pong

To implement the behavior you described (to match Perl5's behavior), you'd
need to pass the delimiter around in Assembler.pm. Should I revisit my
patch to adhere to the example above, or sit on it all until some form of
proper assembler quoting behavior is defined?

Mike Lambert


Reply via email to