Skip to content

Conversation

@MrKOSMOS
Copy link
Contributor

Several small fixes to various files, as wel as creating the hex.md and input42.md pages that were missing

fix link to Command Line Options
Fix reference to Command Line Options and parentheses - add --ignore-case for clarity?
Updated output of -h with that of the latest version, changed indentation for easier comparison with the old text
Fix outdated links and formatting issues
Is this feature present? No examples or documentation even show how it would be used
fixing up some small inconsistencies between files
Initial proposal to document this library
Additions for consistency and clarity
Initial proposal based on INPUT and the INPUT42 source file
Add Declare to function and sub doc pages See Also
Start of TO keyword documentation
Copy link
Collaborator

@boriel boriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this!! 🤗

Please, review my comments before I merge.


```basic
A$ = hex(n32)
B$ = hex(n16)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these be

B$ = hex16(n16)
C$ = hex8(n8)

??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are correct! Missed that

Logicals operators are like in ZX Spectrum Basic. Their result can be either _False_ (which is represented with 0)
or _True_, which might be any other value. <u>Don't expect _True_ value number to be always **1**</u>.
If you need 0/1 values for boolean evaluations, use `--strict-boolean` [compiler option](zxb.md#Command Line Options).
If you need 0/1 values for boolean evaluations, use `--strict-boolean` [compiler option](zxb.md#command-line-options).
Copy link
Collaborator

@boriel boriel Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--strict-boolean is deprecated (currently ignored), and soon will be an error using it!
Booleans are now always normalized! Maybe this line shuold be removed or in the command line options page specify it's deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can delete this line then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I'll edit zxb.md as well

Copy link
Collaborator

@boriel boriel Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed,

which might be any other value. Don't expect True value number to be always 1

is no longer valid. Now it should read

Their result can be either False (which is represented with 0) or True (represented by 1).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also done!

Incorporate corrections from Boriel
Incorporate suggestions from Boriel
Add corrections by Boriel
@MrKOSMOS MrKOSMOS closed this Nov 17, 2025
@MrKOSMOS MrKOSMOS reopened this Nov 17, 2025
@MrKOSMOS
Copy link
Contributor Author

Oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants