Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
concatenation of a str and a str function result (*solved*)
#11
Quote:With the "forward" declaration (as FreeBasic, C or Pascal do) this limitation is rather easy to remove.

I suggest a compromise: If no function is declared in advance, they are supposed to return float as currently. To change that, the programmer may declare them as in FreeBASIC:

Code:
declare function exit_join(as byte,as byte) as string

In FreeBASIC even SUBs must be declared, but that's not needed in ZX Basic, isn't it?

Quote:allowing the function to be called in advance without a forward declaration with a single pass compiler (as ZX BASIC), is rather difficult

I didn't know ZX Basic does one single pass! It's one more reason to appreciate your work. It's impressive.

But wouldn't it be easier to do two passes? Then the program could search for function declarations.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)