flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > another approach (like TASM) |
Author |
|
revolution 01 Mar 2010, 06:46
I don't see how that is any clearer than your previous /* version. Looks rather cluttered to me.
|
|||
01 Mar 2010, 06:46 |
|
ouadji 01 Mar 2010, 07:35
Nothing more, indeed. It's just another way to solve this feature. To build Fasm, Tomasz took as a starting point TASM, and has kept spirit of it. This way is maybe more in keeping with FASM spirit. Prefer one or the other is just a matter of personal choice. |
|||
01 Mar 2010, 07:35 |
|
ouadji 01 Mar 2010, 09:58
Quote: from myself That said, there is a great advantage to be allowed to place nested comments. Be Able to easily deactivate a block of code itself commented.(if not, too) Code: @Intercept dw 1 dup (\ \ /*targetA1*/ 0, /*targetA2*/0,\ ; ..... /*targetD1*/ 0, /*targetD2*/0) /* <-------- code off @Intercept dw 1 dup (\ \ /*targetA1*/ 0, /*targetA2*/0,\ ; ..... /*targetD1*/ 0, /*targetD2*/0) */ <-------- PS : Yes revolution ... we can also do as below, but above, it's easier ! (especially if there are 200 lines to disable) ;@Intercept dw 1 dup (\ ;\ ;/*targetA1*/ 0, /*targetA2*/0,\ ;; ..... ;/*targetD1*/ 0, /*targetD2*/0) |
|||
01 Mar 2010, 09:58 |
|
Fanael 01 Mar 2010, 13:58
Even when you comment out large piece of code the semicolon is still very convenient - my text editor has a capability to (un)comment a block by inserting/deleting the semicolon at the beginning of the line, so I only have to select the code and let the editor do the rest of the work. Multiline comments are, at least for me, utterly useless. Of course they will be great for Notepad users.
|
|||
01 Mar 2010, 13:58 |
|
ouadji 01 Mar 2010, 17:34
I'm agree, it's not an essential feature. Just a comfort of use, a user-friendly feature. Obviously, it's not a feature I use all the time, but when I need it, it's very useful. Especially for big project that take time, with a team development. That said ..simply .. be able to work without it doesn't prohibit to make easier life. In fact, It's a personal choice. |
|||
01 Mar 2010, 17:34 |
|
bitRAKE 02 Mar 2010, 17:47
Since FASM works at the byte level on the text the delimiter would be limited to byte values. For example, UTF-8 could leave bytes following the end of comment for some encodings. Not that this is a problem - just a corner case to note. MASM's multi-line comment ends at the end-of-line after the delimiter - I presume for this reason.
Editors with line formating tools are great. I often reverse line order and sort lines. Programmable editors make reformatting data into comments easy as well. |
|||
02 Mar 2010, 17:47 |
|
ouadji 02 Mar 2010, 18:58
thank you bitRAKE for your reply. my English is not very good (sorry) i hope i understood the meaning of your sentences. Quote:
detect any sequence with multibyte. Quote:
Everything can be analyzed, everything can be detected, I don't see particular difficulties here. I think the solution used by MASM is the solution "of the facility". |
|||
02 Mar 2010, 18:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.