mes/module
Jan Nieuwenhuizen d209a18121 Introduce reference type, use vectors of SCM.
* mes.c (type): Add REF.
  (scm_t): Add ref, change vector to *scm_t.  Update users.
  (alloc): New function.
  (cons, make_char, make_macro, make_number, make_string,
  internal_make_symbol, make_vector): Use it.
  (make_ref): New function.
  (vector_entry): New function.
  (make_vector, list_to_vector, vector_set_x): Use it.
  (vector_ref): Dereference REF entry.
  (display_helper): Handle REF.
* lib.c (vector_to_list): Handle REF.
* type.c (ref_p): New function.
* tests/vector.test (vector list): New test.

Bugfix vector-ref.

* mes.c (vector-ref): Make copies of simple values.  Fixes lalr.
* tests/vector.test (vector-set! 3): New test.
2016-12-12 20:33:48 +01:00
..
language Prepare for 0.1 release: new directory structure. 2016-10-12 23:40:11 +02:00
mes Introduce reference type, use vectors of SCM. 2016-12-12 20:33:48 +01:00
rnrs Prepare for 0.1 release: new directory structure. 2016-10-12 23:40:11 +02:00
srfi Prepare for 0.1 release: new directory structure. 2016-10-12 23:40:11 +02:00