Author | Message | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1679] - posted: 2015-02-12 20:10:10 It would be better to do it automatically. Now using $labelref() similar to using $_uniquelabel. I tried to compare $labelref() and $_uniquelabel Code:
Result: Code:
| ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1681] - posted: 2015-02-12 20:43:01 The reason for this is because macro variables can not automatically initialized as a label else it would cause many problems later, not to mention will make it difficult in some cases especially if making a mistake. e.g. Code:
Here we have a typo which will go unnoticed because asai will automatically become a label (as a macro variable) The other difference is $_uniquelabel returns a unique string name as a label whereas $labelref creates an entry into the label manager. So in your case using labelref you will need to write eax = @$l1; Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1690] - posted: 2015-02-13 18:38:23
Maybe it also is problem? Code:
Cannot compile because
| ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1691] - posted: 2015-02-13 20:18:44 This is not a problem, since this is a programmer purposely looking to break the compiler anyways in this case it will be better to use $labelref. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Currently Active Users: There are currently 13 user(s) online. 0 member(s) and 13 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |