Comments (2)
Hi, apologies for the late response. I'm not sure I understand the issue you're reporting correctly as the program pasted is incomplete and doesn't run (AL
should be defined; there needs to be a DEFSTR A
for the first line to be syntactically correct, which implies AO
is also a string, is that intended? line 6510 is undefined). Could you please include a working test case, including the outcome you see and the outcome you would have expected to see instead?
from pcbasic.
OK, I think this is what is meant:
test program
10 DEFSTR A
20 AL="TEST_SEQ.DAT"
65 OPEN "I",3,AL:O=1
66 IF EOF(3) THEN CLOSE 3:O=O-1:RETURN ELSE INPUT #3,O(O),O1(O),AO(O):O=O+1:GOTO 6510
6510 REM
outcome in PC-BASIC
Type Mismatch in 66
outcome in GW-BASIC
no error
The issue is that the INPUT
implementation ignores the DEFSTR
and tries to read AO
as Single instead of Integer.
Thanks for the proposed code fix which resolves the issue, I'll include.
from pcbasic.
Related Issues (20)
- once-working 2.0.4 release now fails to launch on macOS 12.x HOT 4
- dependency libSDL2 not built for Apple Silicon HOT 10
- `pkg_resources` issues with `.deb` package on Ubuntu 22.04 HOT 10
- `PCOPY` has no effect HOT 4
- Crash in `DRAW` statement on type mismatch in linked variable HOT 3
- USAGE.txt missing HOT 4
- Crash attempting to save a program as binary with text-encoding HOT 2
- Crash on fixed-point `PRINT USING` of small floats HOT 3
- SAVE" BUG HOT 1
- PC-BASIC2.0.6 wont start - VCRUNTIME140.dll not found HOT 5
- crash report after a program break followed by listing a single line HOT 2
- Bug in PCBASIC 2.0.7 for Linux won't open due by DBUS error HOT 7
- Crash when running `AUTO .` HOT 1
- MOD operator returns wrong results for negative argument HOT 3
- Greek codepages, didn't work for me. HOT 2
- chdir ".." nothing changes. HOT 1
- LLIST command does not produce output until program is closed HOT 3
- Had A Crash HOT 2
- PRINT not visible with LOCATE in reverse
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcbasic.