From 47611c4938363346be414b1cf00a63b438e043c4 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 15 Apr 2017 14:02:50 +0200 Subject: Perform custom word definition at the same level as conditional primitives --- source/base/stack.d | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/base') diff --git a/source/base/stack.d b/source/base/stack.d index 253bac0..e42ff12 100644 --- a/source/base/stack.d +++ b/source/base/stack.d @@ -5,8 +5,6 @@ import std.string; import std.variant; import std.container : SList; -import definition = base.definition; - alias Token = Algebraic!(int, bool, string); alias Stack = SList; @@ -35,9 +33,7 @@ Token pop(ref Stack!Token stack) { } void push(ref Stack!Token stack, Token token) { - if ( !definition.handle(token) ) { - stack.insertFront(token); - } + stack.insertFront(token); } template push(T) -- cgit v1.2.3