Login
Remember
Register
PlantUML Q&A
*NEW* Discord server
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
Define variable starting with a number?
0
votes
asked
Aug 13, 2017
in
Bug
by
anonymous
Why does:
!define ABC Test
work, while:
!define 1ABC Test
Does not work? Is there an easy fix for that? It seems starting with a number causes the error. Please advise. Thank you!
define
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail]
(--------)
To avoid this verification in future, please
log in
or
register
.
1 Answer
0
votes
answered
Sep 17, 2017
by
plantuml
(
295,000
points)
We use the C convention here : macro names have to start with a letter or an underscore. Is it a big issue for you ?
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
My attempt to define a directory and include an external file fails with "Some diagram description contains error"
Define for part of identifiers - for use with !includesub - not working for relations
!define without arguments interferes with !define with arguments
define a name for a HEX color
Can I define defaults values of arguments arg1, arg2 for a macro, then omit arg1 when calling the macro?
All categories
Question / help
(1,458)
Bug
(1,636)
Wanted features
(1,419)
Closed question / help
(88)
Closed bug
(53)
Closed feature request
(130)
Won't fix
(3)
Won't implement
(12)
Can't help
(9)
To be deleted
(10)
To be sorted
(429)
...