about summary refs log tree commit diff stats
path: root/archive/1.vm/mutable.mu
blob: 1a1ec7f08a6e43e7b301a335b946a563852bd376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# compare immutable-error.mu

def main [
  local-scope
  x:&:num <- new number:type
  foo x
]

def foo x:&:num -> x:&:num [
  local-scope
  load-inputs
  *x <- copy 34
]
he code of portions of this program with the OpenSSL library under * certain conditions as described in each individual source file, and * distribute linked combinations including the two. * * You must obey the GNU General Public License in all respects for all of the * code used other than OpenSSL. If you modify file(s) with this exception, you * may extend this exception to your version of the file(s), but you are not * obligated to do so. If you do not wish to do so, delete this exception * statement from your version. If you delete this exception statement from all * source files in the program, then also delete it here. * */ #ifndef PARSER_H #define PARSER_H #include <glib.h> gchar** parse_args(const char *const inp, int min, int max, gboolean *result); gchar** parse_args_with_freetext(const char *const inp, int min, int max, gboolean *result); int count_tokens(const char *const string); char* get_start(const char *const string, int tokens); GHashTable* parse_options(gchar **args, gchar **keys, gboolean *res); void options_destroy(GHashTable *options); #endif