Up to Main Index Up to Journal for August, 2023 JOURNAL FOR SATURDAY 19TH AUGUST, 2023 ______________________________________________________________________________ SUBJECT: Mere ICE updated to v0.0.6 DATE: Sat 19 Aug 20:10:17 BST 2023 Mere ICE has been updated to v0.0.6 in the annexed works[1]. This update comes three days after the v0.0.5 release. Mere now supports range-next loops. As a result range is now a reserved keyword. The range-next loop supports break and continue, mixed nesting with for-next loops. Multi-loop break and continue is supported - even with mixed nesting of for-next and range-next loops. Hrm… a quick example of a range-next loop: range letter; animal; [string] "a" "ant", "b" "bat", "c" "cat" println letter " is for " animal next a is for ant b is for bat c is for cat The syntax is a little different to the examples I posted previously. It now follows a similar syntax to for-next loops: range key; value; data The key and value are optional, semi-colons are not. There is a new reference section for range and some new examples. There is also a new sample program :) This has been a quick release cycle, three days!, due to a potential issue with nested for-next loops discovered while implementing range-next loops. NOTE: Please make sure the version in the top right of Mere ICE shows ‘v0.0.6’ and if not hard refresh the web page in your browser. From the “What’s New” section: v0.0.6 — Saturday 19th August, 2023 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ • Improved for-next and if-elif-else-fi performance. • The keys built-in now works with strings. Added a new example for using keys on a string to the keys reference section. • Support added for range-next loops. For example: animals = [string] "a" "ant", "b" "bat", "c" "cat" range letter; animal; animals printf "%s is for %s\n" letter animal next Will produce: a is for ant b is for bat c is for cat A new reference section has been added for range. The break, continue, for and next sections have been updated to include range-next loops. • The reference section for continue has a new "change given" example. • “range” is now a reserved keyword bringing the total to 51. • New example added: A mere card dealer… As always, if you find any bugs or have problems or suggestions then please drop me a quick email: diddymus@wolfmud.org Please… if you find problems, the documentation is unclear or lacking then let me know so that I can do something about it. -- Diddymus [1] The annexed works: /annex/ Up to Main Index Up to Journal for August, 2023