From fa1bdcab3f371f1ec79621fbd890f3ddd8b5019c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 18 Apr 2017 10:54:33 +0200 Subject: Rename `over` to `ovr` so that all stack operations are three letter words --- source/primitives/core.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/primitives/core.d b/source/primitives/core.d index e3c2eeb..46ed890 100644 --- a/source/primitives/core.d +++ b/source/primitives/core.d @@ -25,7 +25,7 @@ bool handle(string word) { case "pop" : unary_op_stack_pop; break; case "dup" : unary_op_stack_dup; break; case "swp" : binary_op_stack_swp; break; - case "over" : binary_op_stack_over; break; + case "ovr" : binary_op_stack_ovr; break; case "rot" : ternary_op_stack_rot; break; case "true" : nullary_op_value_bool(true); break; case "false" : nullary_op_value_bool(false); break; @@ -97,7 +97,7 @@ void binary_op_stack_swp() { stack.push(a); } -void binary_op_stack_over() { +void binary_op_stack_ovr() { auto b = stack.pop; auto a = stack.pop; -- cgit v1.2.3