Repository navigation
2.2.0
#153
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fixed
remark()function if theremarksoption was set tononeoractive.webapp.batfile not working on Windows due to classpath being too long.Added
ITEM_COALinstead ofITEM-COAL). Kebab-case identifiers (with dashes) are deprecated in Mindcode and will be desupported in a future release. (In Schemacode, there are currently no plans to remove support for kebab-case identifiers.)paramkeyword. Using global variables for program parametrization is deprecated, program parameters should be used instead. Support for program parametrization through global variables will be removed in a future release.noinlinekeyword, which will prevent a function from being inlined even when called just once, and by the Function Inlining optimization. The keyword can only be used when declaring a function./*and*/. These comments can span multiple lines.Experimental features
Experimental features may contain bugs or produce suboptimal code, and are subject to change.
outkeyword to be used with loop control variables in list iteration loop, allowing list elements to be modified.Compile and Runbutton in the web app, or the--runcommand line option. The output is shown in a separate control in the web app, or written to the log when using the command line tool.--appendcommand line argument.experimental. On this setting, the Data Flow optimizer doesn't assume the assignments to global variables might be changed by editing the compiled code, allowing to perform more optimizations on them. Program parameters must be used instead of global variables for program parametrization if this optimization level is used.printandprintlnfunctions the same way asprintfdoes.sort-variablescompiler directive which ensures that user variables will be accessed in a well-defined order, to make inspecting the variables in the Mindustry processors Vars screen easier.printinstruction (which is not executed) with the text "Compiled by Mindcode - github.com/cardillan/mindcode". The signature is not added should the instruction limit be exceeded, or when the program doesn't naturally end in an unconditional jump. Adding the signature can be disabled in the command line tool by the--no-signaturecommand line argument.Changed
offandaggressivetononeandadvanced. The former names are still supported in the#setcompiler directive, but not in the command-line options.basicfor Mindcode compiler andadvancedfor Schemacode builder.dokeyword in allforandwhileloops, and optionalthenkeyword inifandelsifstatements.endinstruction at the very end of the program onadvancedoptimization level.Miscellaneous
2.2.0) on, Mindcode will use semantic versioning (major version will be increased for significant changes to the syntax). The command-line tool now reports the version when passed in-vor--versionas a parameter.ifand other constructs to remove the dependency on the--enable-previewswitch.This discussion was created from the release 2.2.0.
All reactions