Re: [Ql-Users] Qbase

2017-09-19 Thread Marcel Kilgus via Ql-Users
Daniel Baum via Ql-Users wrote: > Yes, but if the API has changed from version to version, then it WILL fail > for some users who are using a different version to the one that I am > writing for in my program. > > Therefore linking it seems like a good idea. Unfortunately it isn't because it's

Re: [Ql-Users] Lear PCB Design v7.55

2017-09-19 Thread Michael Bulford via Ql-Users
On Mon, 18 Sep 2017 at 14:26, Dilwyn Jones wrote: > A new update of Malcolm Lear's PCB Design is available from the Graphics page > on my website. Details of the little bug fix in the REVISIONS.TXT file. > > version 7.55 Fixed 1 mil offset correction for snake shape with

Re: [Ql-Users] Lear PCB Design v7.55

2017-09-19 Thread Michael Bulford via Ql-Users
On Mon, 18 Sep 2017 at 14:26, Dilwyn Jones wrote: > A new update of Malcolm Lear's PCB Design is available from the Graphics page > on my website. Details of the little bug fix in the REVISIONS.TXT file. > > version 7.55 Fixed 1 mil offset correction for snake shape with

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Tobias Fröschle via Ql-Users
That language definition (if it exists, I don't know) would only matter for functions - simple comparisons that have no side effect would be fine to simply omit. Tobias > Am 19.09.2017 um 23:42 schrieb Jan Bredenbeek via Ql-Users > : > > On 19 September 2017 at

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Jan Bredenbeek via Ql-Users
On 19 September 2017 at 23:36, Tobias Fröschle via Ql-Users < ql-users@lists.q-v-d.com> wrote: > Neither Turbo nor QLiberator do short-circuit evaluation. > C68 does. > Because it's part of the language definition. Jan -- *Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Tobias Fröschle via Ql-Users
Neither Turbo nor QLiberator do short-circuit evaluation. C68 does. Tobias > Am 19.09.2017 um 23:25 schrieb Jan Bredenbeek via Ql-Users > : > > On 19 September 2017 at 21:27, Wolfgang Lenerz via Ql-Users < > ql-users@lists.q-v-d.com> wrote: > >> Hi all, >> >> Just a

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Jan Bredenbeek via Ql-Users
On 19 September 2017 at 21:27, Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> wrote: > Hi all, > > Just a rant about the SBasic AND operator. > > Suppose this: > > 10 a=0 > 20 b=10 > 30 if (a<>0 AND b/a=5) > 40 do_something > 50 end if > > Run it and what happens? > > You get an

Re: [Ql-Users] Fw: Stupid AND

2017-09-19 Thread Dilwyn Jones via Ql-Users
yes, that's of course the right (and long-winded) way to do it, and I always remember that ... once my program has crashed. Wolfgang I know the feeling... :-) Dilwyn . ___ QL-Users Mailing List

Re: [Ql-Users] Fw: Stupid AND

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
Hi, yes, that's of course the right (and long-winded) way to do it, and I always remember that ... once my program has crashed. Wolfgang through splitting up and building up to the final logcal value. The easiest way around this simple example is using two IFs instead of AND to ensure

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Jiri Dolezal via Ql-Users
30 if (a<>0 AND b/a=5) The first condition (a<>0) is NOT met and so, in any other programming language I use, the second condition isn't even tested, as the result will be "false" anyway because of this. Standard BASIC approach is to evaluate first expression, store the result

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
On 19/09/2017 22:02, Dilwyn Jones via Ql-Users wrote: I take it Dave means it fits in 48K, don't expect too much. What, I can't expect perfection in 48 K (and SMSQE is much larger)? grin Wolfgang ___ QL-Users Mailing List

[Ql-Users] Fw: Stupid AND

2017-09-19 Thread Dilwyn Jones via Ql-Users
I take the point about other basics doing it differently, but this is how Sinclair BASIC has worked, by building up a value for the overall expression through splitting up and building up to the final logcal value. The easiest way around this simple example is using two IFs instead of AND to

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Peter Graf via Ql-Users
Wolfgang Lenerz via Ql-Users wrote: > Just a rant about the SBasic AND operator. > > Suppose this: > > 10 a=0 > 20 b=10 > 30 if (a<>0 AND b/a=5) > 40 do_something > 50 end if > > Run it and what happens? > > You get an "overflow" error at line 30. > You get this error because it is trying to

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Per Witte via Ql-Users
Yes, its dumb, but the problem has been there since the day day dot. So suck it up and work around :) Per On 19 September 2017 at 21:55, Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> wrote: > On 19/09/2017 21:32, Dave Park via Ql-Users wrote: > >> Your BASIC interpreter fits in 48K.

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Dilwyn Jones via Ql-Users
I take it Dave means it fits in 48K, don't expect too much. Dilwyn -Original Message- From: Wolfgang Lenerz via Ql-Users Sent: Tuesday, September 19, 2017 8:55 PM To: ql-us...@q-v-d.com Cc: Wolfgang Lenerz Subject: Re: [Ql-Users] Stupid AND On 19/09/2017 21:32, Dave Park via

Re: [Ql-Users] Qbase

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
Hi, I believe that the Api has remained pretty stable since v. 7. Wolfgang Yes, but if the API has changed from version to version, then it WILL fail for some users who are using a different version to the one that I am writing for in my program. Therefore linking it seems like a good idea.

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
On 19/09/2017 21:32, Dave Park via Ql-Users wrote: Your BASIC interpreter fits in 48K. With room to spare. And? (pun intended) Wolfgang On Tue, Sep 19, 2017 at 2:27 PM, Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> wrote: Hi all, Just a rant about the SBasic AND operator.

Re: [Ql-Users] Qbase

2017-09-19 Thread Daniel Baum via Ql-Users
Yes, but if the API has changed from version to version, then it WILL fail for some users who are using a different version to the one that I am writing for in my program. Therefore linking it seems like a good idea. Whatever, I will update the program for the latest version and hope for the

Re: [Ql-Users] Stupid AND

2017-09-19 Thread Dave Park via Ql-Users
Your BASIC interpreter fits in 48K. With room to spare. On Tue, Sep 19, 2017 at 2:27 PM, Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> wrote: > Hi all, > > Just a rant about the SBasic AND operator. > > Suppose this: > > 10 a=0 > 20 b=10 > 30 if (a<>0 AND b/a=5) > 40 do_something >

[Ql-Users] Stupid AND

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
Hi all, Just a rant about the SBasic AND operator. Suppose this: 10 a=0 20 b=10 30 if (a<>0 AND b/a=5) 40 do_something 50 end if Run it and what happens? You get an "overflow" error at line 30. You get this error because it is trying to evaluate the second condition (b/a) and failing as

Re: [Ql-Users] Qbase

2017-09-19 Thread Per Witte via Ql-Users
Lots of different programs use Qmenu, so there should be no need to link it in. Its best loaded at boot time. Per On 19 September 2017 at 21:15, Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> wrote: > Hi, > > the problem is that these parameters are likely to vary from version to >

Re: [Ql-Users] Qbase

2017-09-19 Thread Wolfgang Lenerz via Ql-Users
Hi, the problem is that these parameters are likely to vary from version to version, as they are offsets into the file... Your best bet is probably to adapt your program to the latest version. Wolfgang A question about QBase and QMenu. The menu extensions are used fairly extensively in

Re: [Ql-Users] Qbase

2017-09-19 Thread Daniel Baum via Ql-Users
Hi all, A question about QBase and QMenu. The menu extensions are used fairly extensively in QBase. However, the program was originally written in 1998 with whatever version of QMenu was current then, and it doesn't seem to work properly with the later version (version 7.66) which is