Search found 2250 matches
- Thu Jan 11, 2024 11:57 am
- Forum: The Off-Topic Section
- Topic: C++ Initialised Static (Class) Variables with Source and Explanation
- Replies: 5
- Views: 780
Re: C++ Initialised Static (Class) Variables with Source and Explanation
Proud to present a new article on my homepage ([at least] currently only available in English): http://peter-sulzer.bplaced.net/htdocs/index.php?pagefile=develop/cpp/classVarsWithInit.hti (WARNING: Link opens in SAME Window/Tab, albeit linking to another site!) I'm getting a 404 page when I follow ...
- Tue Jan 09, 2024 8:17 am
- Forum: Software & Programming
- Topic: Bug in string handling in SMSQ/E
- Replies: 11
- Views: 1172
Re: Bug in string handling in SMSQ/E
While I'm happy to agree about returning an empty string in this case, it should be consistent so that any attempt to slice from a larger index to a smaller one should either return the empty string or return an error, but not this pile of pants! This is, currently, as I found in SSB, a bug. Cheers,...
- Mon Jan 08, 2024 4:20 pm
- Forum: Software & Programming
- Topic: Bug in string handling in SMSQ/E
- Replies: 11
- Views: 1172
Re: Bug in string handling in SMSQ/E
I think that attempting to slice a string from the wrong end, as here, should either always return an empty string, or always return an error. This behaviour is not consistent. I discovered this problem in SSB where it uses variables to slice the string, not hard coded values. So: in$ = in$(temp to ...
- Mon Jan 08, 2024 3:40 pm
- Forum: Software & Programming
- Topic: Bug in string handling in SMSQ/E
- Replies: 11
- Views: 1172
Re: Bug in string handling in SMSQ/E
Dunno!
Line 20 returns an empty string but only if (end_pos - start_pos) = -1. Any other negative difference between start_pos and end_pos results in the error message.
Cheers,
Norm.
- Mon Jan 08, 2024 2:54 pm
- Forum: Software & Programming
- Topic: Bug in string handling in SMSQ/E
- Replies: 11
- Views: 1172
Re: Bug in string handling in SMSQ/E
Thanks Per. I suggest therefore, that we have a bug!
Cheers,
Norm.
Cheers,
Norm.
- Mon Jan 08, 2024 1:02 pm
- Forum: Software & Programming
- Topic: Bug in string handling in SMSQ/E
- Replies: 11
- Views: 1172
Bug in string handling in SMSQ/E
I'm using QPC2, the latest version in case that makes a difference. If I define a string with some contents, then try to take a slice of that string where the start position is one less than the end position, I get the empty string. If the end position is 2 or more less than the start position, I ge...
- Sat Jan 06, 2024 3:34 pm
- Forum: Software & Programming
- Topic: Copy binary file into array in basic
- Replies: 18
- Views: 1895
Re: Copy binary file into array in basic
I recommend Norman's excellent assembly book (free): https://github.com/NormanDunbar/QLAssemblyLanguageBook/ And lots of links in this thread: https://www.qlforum.co.uk/viewtopic.php?p=35362&hilit=norman+assembler+book I thank you, Sparrowhawk, for the vote of confidence! In addition to the fre...
- Thu Jan 04, 2024 11:12 am
- Forum: Links to QL Services and Websites
- Topic: SBASIC / SuperBASIC Reference Manual Online
- Replies: 64
- Views: 78862
Re: SBASIC / SuperBASIC Reference Manual Online
Ok, I've submitted a build of the updated docs as version 4.0.2 which has completed successfully. The following commands have been fixed and the escape characters before underscores in code blocks have been removed: DIR, DO. ENV_DEL, EW. FTEST. GT$. KEY_ADD. PARHASH, PTH_ADD. SET_LANGUAGE. Appendix ...
- Thu Jan 04, 2024 10:38 am
- Forum: Links to QL Services and Websites
- Topic: SBASIC / SuperBASIC Reference Manual Online
- Replies: 64
- Views: 78862
Re: SBASIC / SuperBASIC Reference Manual Online
Technically, no!
They are escape characters to prevent the underscore from beginning italic text, but they shouldn't have been in the output. I shall have a look and see if I can find these, and more, and fix them all.
Cheers,
Norm.
- Thu Jan 04, 2024 7:31 am
- Forum: Links to QL Services and Websites
- Topic: SBASIC / SuperBASIC Reference Manual Online
- Replies: 64
- Views: 78862
Re: SBASIC / SuperBASIC Reference Manual Online
I will update the version, when changes are made in future, thanks for the prompt.
I'm afraid that I have no control over the download file names, that's "Read The Docs" , not me. They generate the downloads. Sorry.
Cheers,
Norm.
I'm afraid that I have no control over the download file names, that's "Read The Docs" , not me. They generate the downloads. Sorry.
Cheers,
Norm.