summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-04-29 01:27:29 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-04-29 01:27:29 +0200
commit4906cda4b79aca262d8227e2c9461144439106d4 (patch)
treefda7bf3eb31495b64b94fa3b498194b1df900453 /lib
parent17448991a62f684498f464702037a00d6349140e (diff)
downloaddigitale-debutanten-4906cda4b79aca262d8227e2c9461144439106d4.tar.gz
make Queue element class public
necessary for iterating a queue without flushing it
Diffstat (limited to 'lib')
-rw-r--r--lib/Element.ck7
-rw-r--r--lib/Queue.ck4
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/Element.ck b/lib/Element.ck
new file mode 100644
index 0000000..7a81429
--- /dev/null
+++ b/lib/Element.ck
@@ -0,0 +1,7 @@
+/*
+ * List element
+ */
+public class Element {
+ Element @next;
+ Object @payload;
+}
diff --git a/lib/Queue.ck b/lib/Queue.ck
index f05ae5e..586330c 100644
--- a/lib/Queue.ck
+++ b/lib/Queue.ck
@@ -2,10 +2,6 @@
* Queue data structure
*/
public class Queue {
- class Element {
- Element @next;
- Object @payload;
- }
Element head @=> Element @tail;
fun void