Comments (2)
actually, I suspect this behavior is correct even if it is very counter-intuitive.
the statement
DIM b0, b1, b2 AS BOOLEAN
is equivalent to
DIM b0
DIM b1
DIM b2 AS BOOLEAN
which implies auto-typing for b0 and b1. auto-typing is based on the identifier's suffix (e.g. $ for i$ -> INTEGER), or, if there is none (as in this case), SINGLE.
I recommend using the alternative syntax
DIM AS BOOLEAN b0, b1, b2
which will lead to the expected result
from aqb.
understand
okay!
from aqb.
Related Issues (20)
- CLS on true color screen HOT 3
- Ctrl-Y not working on last line
- FOR ... NEXT
- console in IDE
- crash example
- single quotation mark for remarks HOT 3
- "if booleanVar then" leads to crash
- new crash in the oop branch HOT 5
- STRING compares in BOOLEAN assignments are broken HOT 2
- strange behaviour
- open Windows on the current screen HOT 1
- the power of equality HOT 2
- unresolved symbol _L0 (L and zero)
- Indentation with remarks
- Indentation for TYPE
- EQV, IMP, XOR HOT 2
- BYTE or UBYTE?
- negative values in HEX$, OCT$, BIN$
- SPC() is not the same as SPACE$()
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 aqb.