Allow "deprecated" to accept more than string literals while parsing
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 1 08:24:43 PDT 2015
On 5/31/15 11:33 PM, Brian Schott wrote:
> Here's something that I ran into while writing dfix`s implicit string
> concatenation cleanup code:
>
> ```
> // accepted
> deprecated("This function is dumb and you shouldn't use it)
> void deleteT3hH4rdDisk();
>
> // accepted
> deprecated("This function is dumb and" " you shouldn't use it)
> void deleteT3hH4rdDisk();
>
> // parse error
> deprecated("This function is dumb and" ~ " you shouldn't use it)
> void deleteT3hH4rdDisk();
> ```
>
Am I missing something, or is the trailing quote not required? (missing
in all 3 examples).
-Steve
More information about the Digitalmars-d
mailing list