Using CSS Data from Within My Code
Ron Tarrant
rontarrant at gmail.com
Thu Sep 12 18:45:09 UTC 2019
On Thursday, 12 September 2019 at 13:09:16 UTC, Mike Parker wrote:
> On Thursday, 12 September 2019 at 11:40:33 UTC, Ron Tarrant
> wrote:
>
>> string myCSS = "tab { background-color: #f2f2f2; }";
>>
>>
>
> enum will work just as well here and without the need for the
> variable:
>
> enum myCSS = "tab { background-color: #f2f2f2; }";
>
> The original error was because q strings have to be valid D,
> not because of the enum.
Ah! Thanks for clearing that up, Mike. My D knowledge is still
rather sparse, so this fills in another blank for me.
More information about the Digitalmars-d-learn
mailing list