aboutsummaryrefslogtreecommitdiff
path: root/source/base
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-04-15 14:02:50 +0200
committerAdrian Kummerlaender2017-04-15 14:02:50 +0200
commit47611c4938363346be414b1cf00a63b438e043c4 (patch)
treea08a727821c074d513a95e192ad3b43fcdfa4405 /source/base
parent5ca4d7acb5545050a731b0adc2e39b3ed65b7fc9 (diff)
downloadslang-47611c4938363346be414b1cf00a63b438e043c4.tar
slang-47611c4938363346be414b1cf00a63b438e043c4.tar.gz
slang-47611c4938363346be414b1cf00a63b438e043c4.tar.bz2
slang-47611c4938363346be414b1cf00a63b438e043c4.tar.lz
slang-47611c4938363346be414b1cf00a63b438e043c4.tar.xz
slang-47611c4938363346be414b1cf00a63b438e043c4.tar.zst
slang-47611c4938363346be414b1cf00a63b438e043c4.zip
Perform custom word definition at the same level as conditional primitives
Diffstat (limited to 'source/base')
-rw-r--r--source/base/stack.d6
1 files changed, 1 insertions, 5 deletions
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)