Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@vascocosta vascocosta released this 18 Apr 12:10
  • Add support for remote dependencies
  • Add remove command
  • Add support for labels

This is a milestone release which adds significant new features and marks the code as stable.

Bargo now supports remote dependencies in addition to the regular local dependencies. Just specify your dependencies in Bargo.toml under the [dependencies] section but after the name of the dependency, include a valid URL from where to download the BASIC file. You can use any HTTP URL and Bargo will attempt to fetch the code from there, including a GitHub URL. Notice that the use of version numbers in your dependencies is now deprecated. That placeholder is now used for the remote dependencies.

The remove command allows to easily remove a dependency from Bargo.toml. As previously, you can manually edit Bargo.toml and update your dependencies, but now you can also simply run bargo remove my_dep.

Although the GOTO/GOSUB commands shouldn't be overused, at the expense of spaghetti code, as long as you keep them in check, it's perfectly fine. However, since bargo abstracts you from line numbers, it now supports text labels to easily allow you to use these commands. First define a text label with LABEL my_label just above the code you want to jump to and then use that same text label with GOTO/GOSUB like for instance GOTO my_label or GOSUB my_label. These labels are case sensitive. Behind the scenes bargo replaces your labels with the appropriate line numbers when you do bargo build.