SBASIC not compatible with SB: PROCedure in PROCedure
Posted: Sun Feb 01, 2015 2:53 am
When trying to run some of my games on QPC I have found an incompatibility of SBASIC.
I've tried to start Psion Chess from one of my old "Games Floppies". In the boot file there was a construct like this:
...
DeFine PROCedure something
DeFine PROCedure pat
do something
END DeFine PROCedure
END DeFine PROCedure
...
This gives an error in SBASIC (I think "Not implemented"(1), not sure). With SuperBASIC this was OK. It's one of my old floppies, and so I know, that this has been possible with SuperBASIC, but unfortunately not with SBASIC.
It isn't a great problem, because I know that I have a PSION Chess version which is executeable (as a job - I have been successful to run it with Extended Environment on Minerva - perfect Multitasking) and it would be easy to rewrite the boot program and write the pat-proc outside of the outer proc, but it's an incompatibility, which could result in problems for larger programs, where it is not so easy.
p.s.:
(1) Error is: At line nnn:nn DEFines may not be within other clauses
For an example see the attached screenshot
I've tried to start Psion Chess from one of my old "Games Floppies". In the boot file there was a construct like this:
...
DeFine PROCedure something
DeFine PROCedure pat
do something
END DeFine PROCedure
END DeFine PROCedure
...
This gives an error in SBASIC (I think "Not implemented"(1), not sure). With SuperBASIC this was OK. It's one of my old floppies, and so I know, that this has been possible with SuperBASIC, but unfortunately not with SBASIC.
It isn't a great problem, because I know that I have a PSION Chess version which is executeable (as a job - I have been successful to run it with Extended Environment on Minerva - perfect Multitasking) and it would be easy to rewrite the boot program and write the pat-proc outside of the outer proc, but it's an incompatibility, which could result in problems for larger programs, where it is not so easy.
p.s.:
(1) Error is: At line nnn:nn DEFines may not be within other clauses
For an example see the attached screenshot