Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Most useful/needed stuff which should be added
#15
na_th_an Wrote:5.- Allow comments in broken lines, such as this:

Code:
Dim myLevel(2) as uByte => { _
   0, _     ' Number of exists
   10, _    ' Baddies life gauge
   7 _      ' Water level
}
Okay, multiline comments /' ... '/ and comments in broken lines are now allowed. Will upload new version this evening.
Check FreeBasic Comments syntax page, as ZX BASIC now completely (I think) follows these commenting syntax.

This version also corrects # preprocessor directives within ASM blocks son
Code:
...
ASM
#include "external_library.asm"
#line 433
END ASM
Should now work again.

na_th_an Wrote:Currently, the compiler refuses to compile such snippets. Comments aren't allowed after compiler directives, either, for example:
Code:
#include once "fsp2.1.bas"    ' The sprite library
Fails to compile due to the inline comment.
# preprocessor line directives are a complete different thing from BASIC source code and do not allow comments in the same line.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)