diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-05-15 07:08:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-05-15 07:08:32 -0700 |
commit | 0d3a7519e81dc9eb26d550393bb5d988dad645bf (patch) | |
tree | f2f9f343421642c15ff20f9693788f770f0cc858 /struct.h | |
parent | 63d18cb2cb30c20c9bbf00501b253bbc1cee5011 (diff) | |
download | txr-0d3a7519e81dc9eb26d550393bb5d988dad645bf.tar.gz txr-0d3a7519e81dc9eb26d550393bb5d988dad645bf.tar.bz2 txr-0d3a7519e81dc9eb26d550393bb5d988dad645bf.zip |
oop: derived hook.
* struct.c (derived_s): New symbol variable.
(struct_init): Initialize derived_s symbol.
(make_struct_type): Check for derived method in parent, and
invoke.
* struct.h (derived_s): Declared.
* txr.1: Documented.
Diffstat (limited to 'struct.h')
-rw-r--r-- | struct.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ extern val struct_type_s, meth_s, print_s, make_struct_lit_s; extern val init_k, postinit_k; -extern val slot_s; +extern val slot_s, derived_s; extern struct cobj_ops struct_inst_ops; val make_struct_type(val name, val super, val static_slots, val slots, |