I created a structure union in DWC where I mapped a DW.d over a DC.coord. I later found a problem with the structure not receiving a proper return from one of the API calls. As I tried to figure out what was going on, I chanced to observe that DWC\DW was being handled as a float. As I was
retyping the structure to make sure I had it exactly right, I elected to change
the DW.d to Dw.d, but the Editor immediately changed it back to DW.d, which indicated it was a keyword or constant. Only it appears that it isn't, since I cannot find a reference to it. No syntactical error, no problem with the program compiling and running, but it gives a wrong result where I try to use it in my code.
Reserved Word or Not a Reserved Word?
Reserved Word or Not a Reserved Word?
has-been wanna-be (You may not agree with what I say, but it will make you think).
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Interesting. I thought that any reserved word would bring up an corresponding help link if recognized, but when I checked the Flat Assemble we site, their only documentation had to be accessed online. Since the Help
feature in PureBasic is limited to documentation copied into the \PureBasic\Help folder, you have a bit of a problem of getting a handy link to the reference to DW in FASM. It is not an Opcode of ASM, so no help here.
I had mentioned the desireability of being able to have links added to the
Help feature in the IDE, and I guess this is a case where it would have paid off if done interactively rather than just passively.
feature in PureBasic is limited to documentation copied into the \PureBasic\Help folder, you have a bit of a problem of getting a handy link to the reference to DW in FASM. It is not an Opcode of ASM, so no help here.
I had mentioned the desireability of being able to have links added to the
Help feature in the IDE, and I guess this is a case where it would have paid off if done interactively rather than just passively.
has-been wanna-be (You may not agree with what I say, but it will make you think).
That's why it could be interessant to have a special block for ASM code like DataSection/EndDataSection. For example : AsmSection/EndAsmSection.
This way no need to have an option in the compiler dialog, but maybe it's not possible to implement this.
This way no need to have an option in the compiler dialog, but maybe it's not possible to implement this.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer