summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-05-15 07:08:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-05-15 07:08:32 -0700
commit0d3a7519e81dc9eb26d550393bb5d988dad645bf (patch)
treef2f9f343421642c15ff20f9693788f770f0cc858 /struct.h
parent63d18cb2cb30c20c9bbf00501b253bbc1cee5011 (diff)
downloadtxr-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.h b/struct.h
index 09bf6767..d67ce3d7 100644
--- a/struct.h
+++ b/struct.h
@@ -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,