keyword as struct field

partypooper pythonproof at gmail.com
Sun Feb 20 16:52:30 UTC 2022


On Sunday, 20 February 2022 at 15:33:17 UTC, Andrey Zherikov 
wrote:
> On Sunday, 20 February 2022 at 11:08:55 UTC, partypooper wrote:
>> keyword as struct field
>
> I believe this is the case for the most languages - keyword is 
> not allowed as a variable name.

Yes, but as example in Nim you can surround identifier with 
backticks to omit this issue.



More information about the Digitalmars-d-learn mailing list