From 8ab69b673852971103e89eafa15a1dc6385b56ce Mon Sep 17 00:00:00 2001 From: user Date: Sat, 21 Dec 2019 06:45:50 -0800 Subject: wip --- starts/meaning-vm/level-2/funcs.cpp | 2 +- starts/meaning-vm/level-2/funcs.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'starts/meaning-vm/level-2') diff --git a/starts/meaning-vm/level-2/funcs.cpp b/starts/meaning-vm/level-2/funcs.cpp index e4fc090..36f93ca 100644 --- a/starts/meaning-vm/level-2/funcs.cpp +++ b/starts/meaning-vm/level-2/funcs.cpp @@ -17,7 +17,7 @@ ref & context() return ctx; } -ref makehabit(ref name, std::initializer_list argnames, std::function code) +ref makehabit(ref name, std::initializer_list argnames, std::initializer_list defaults, std::function code) { ref habit = level1::a(concepts::habit, name); ref posarg = habit; diff --git a/starts/meaning-vm/level-2/funcs.hpp b/starts/meaning-vm/level-2/funcs.hpp index 65290fb..d1d1d7d 100644 --- a/starts/meaning-vm/level-2/funcs.hpp +++ b/starts/meaning-vm/level-2/funcs.hpp @@ -11,8 +11,8 @@ namespace level2 { ref & context(); // TODO: pass default argument values to makehabit? ref makehabit(ref name, std::initializer_list argnames, std::function code); -ref dohabit(ref habit, std::initializer_list args); -ref dohabit(ref habit, std::initializer_list> args = {}); +ref dohabit(ref habit, std::initializer_list args = {}); +ref dohabit(ref habit, std::initializer_list> args); } } -- cgit v1.2.3