flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
jorido 24 Feb 2017, 16:48
Are double and single quotes equals? Can they be used interchangably?
Which are used most often? |
|||
![]() |
|
zhak 24 Feb 2017, 18:18
You can use double quotes if text contains single quotes and vice versa for convenience not to bother with escape sequences
|
|||
![]() |
|
jorido 25 Feb 2017, 01:06
>If you are asking about assembly source code for fasm then for the most part, yes.
Yes. Why for the most part, are there exceptions? |
|||
![]() |
|
revolution 25 Feb 2017, 02:13
jorido wrote: Yes. Why for the most part, are there exceptions?
|
|||
![]() |
|
Tomasz Grysztar 25 Feb 2017, 10:07
revolution wrote: [*]Concatenating things with macros may change the results. |
|||
![]() |
|
l_inc 25 Feb 2017, 11:49
Tomasz Grysztar wrote: The only real difference is the one mentioned by zhak Well, another difference is that the single quote is allowed in numeric symbols, while the double quote is not, although none of these forcefully starts a new symbol and both can therefore be freely used in non-leading positions of other symbols such as constant names. They are treated then as different characters, of course (a"b = 1 defines a constant other than a'b = 1). P.S. And the string-enclosing quote can also be used inside the string if put twice in succession. _________________ Faith is a superposition of knowledge and fallacy |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.