This syntax doesn't exist anymore – bug fixed.

On Thu, Jun 4, 2015 at 11:41 PM, Scott Jones <[email protected]>
wrote:

> I would say that is a bug... that `\\` doesn't become `\`.
>
> On Wednesday, December 4, 2013 at 4:03:43 AM UTC+1, Stefan Karpinski wrote:
>>
>> Right, what I actually meant was removing backslashes when they occur in
>> the input before your quote string (double quote, typically). But I
>> actually think we're already doing this:
>>
>> julia> macro L_str(s)
>>          s
>>        end
>>
>> julia> L"\""
>> "\""
>>
>> julia> L"foo\"\x"
>> "foo\"\\x"
>>
>> julia> print(L"foo\"\x")
>>  foo"\x
>>
>>
>> The backslash before the " disappears while the backslash before the x
>> does not. However, that means that you can't, e.g. pass to a string macro a
>> string ending with a single backslash:
>>
>> julia> print(L"foo\\")
>> foo\\
>>
>>
>>
>> On Tue, Dec 3, 2013 at 10:24 PM, Steven G. Johnson <[email protected]>
>> wrote:
>>
>>> String macros in general treat everything literally, as Stefan alluded
>>> to. I use this in PyPlot to define an L"..." macro for LaTeX. In that
>>> context, is is important not to escape backslashes either, so that you can
>>> do e.g. L"blah $\sqrt{\alpha}$"
>>>
>>
>>

Reply via email to