Index: .poseidon
==================================================================
--- .poseidon
+++ .poseidon
@@ -49,12 +49,10 @@
build.bat
- build.sh
- builddoc.bat
doc\candydoc\modules.ddoc
index.dd
readme.txt
ADDED Makefile
Index: Makefile
==================================================================
--- Makefile
+++ Makefile
@@ -0,0 +1,33 @@
+.PHONY : all windows doc
+
+DC=dmd
+DC_OPT=-O -release
+SRC = $(wildcard *.d polemy/*.d tricks/*.d)
+
+
+all:
+ $(DC) $(DC_OPT) -ofbin/polemy $(SRC)
+
+windows:
+ $(DC) $(DC_OPT) -ofbin\\polemy $(SRC)
+
+
+
+
+DOCDIR=doc
+DDOC_FILES=$(DOCDIR)/candydoc/candy.ddoc $(DOCDIR)/candydoc/modules.ddoc
+DDOC_OPT=-o- -D -Dddoc $(DDOC_FILES)
+
+VPATH = . polemy tricks
+
+$(DOCDIR)/%.html: %.d $(DDOC_FILES)
+ $(DC) $(DDOC_OPT) $<
+
+$(DOCDIR)/%.html: %.dd $(DDOC_FILES)
+ $(DC) $(DDOC_OPT) $<
+
+SRCB = $(notdir $(SRC))
+SRCA = $(addprefix $(DOCDIR)/, $(SRCB))
+DOCS = $(SRCA:.d=.html) $(DOCDIR)/index.html
+
+doc: $(DOCS)
DELETED build.sh
Index: build.sh
==================================================================
--- build.sh
+++ build.sh
@@ -1,4 +0,0 @@
-#!/bin/sh
-if [ ! -d bin ]; then mkdir bin; fi
-echo dmd -ofbin/polemy -O -release main.d polemy/*.d tricks/*.d
-dmd -ofbin/polemy -O -release main.d polemy/*.d tricks/*.d
DELETED builddoc.bat
Index: builddoc.bat
==================================================================
--- builddoc.bat
+++ builddoc.bat
@@ -1,6 +0,0 @@
-@setlocal ENABLEDELAYEDEXPANSION
-@set ARGS=
-@for %%I in (main.d polemy\*.d tricks\*.d) do @set ARGS=!ARGS! %%I
-@if not exist bin mkdir bin
-@echo dmd -o- -D -Dddoc index.dd doc\candydoc\candy.ddoc doc\candydoc\modules.ddoc %ARGS%
-@dmd -o- -D -Dddoc index.dd doc\candydoc\candy.ddoc doc\candydoc\modules.ddoc %ARGS%
Index: doc/_common.html
==================================================================
--- doc/_common.html
+++ doc/_common.html
@@ -24,11 +24,11 @@
- print | (a) | a を文字列化標準出力に改行付きで表示 |
+ print | (a) | a を文字列化標準出力に改行付きで表示して、a を返す |
argv | | スクリプトに渡された引数文字列のconsリスト |
+ gensym | () | エセgensym。変数名として他とかぶらなそうな文字列を返します |
+ rand | (n) | 0 以上 n 未満の自然数を31bit以内でランダムに生成します |
@@ -803,11 +805,11 @@
-asserts two operands are <
+asserts two operands are <
alias
@@ -145,11 +145,11 @@
-Mixing-in the MOST-DERIVED-member-wise comparator for a class
+Mixing-in the MOST-DERIVED-member-wise comparator for a class
+ BE SURE THAT THIS IS CONSISTENT WITH opCmp and opEquals
@@ -119,12 +120,12 @@
template
-SimpleCompare
-
+SimpleCompareWithoutToHash
+
()
@@ -136,11 +137,11 @@
const bool
opEquals
-(Object rhs_);
+(Object rhs);
member-by-member equality
@@ -162,10 +163,23 @@
+
+
+
+template
+SimpleCompare
+
+
+()
+
+
+
+Mixing-in the MOST-DERIVED-member-wise comparator for a class
+
template
SimpleToString
@@ -223,11 +237,11 @@
(T)
-Will be used for dynamic overload resolution pattern
+Utility
@@ -234,11 +248,11 @@
+
+- void
+set
+
+
+(string i, Layer lay, Value v);
+
+
+
+
+- Set the value v to the index i of layer lay
+
+
+
+
+- const bool
+has
+
+
+(string i, Layer lay);
+
+
+
+
+- True if index i
+has
+
+
+ value in layer lay
+
+
+
+
+- Value
+get
+
+
+(string i, Layer lay, LexPosition pos = null);
+
+
+
+
+- Return the value of index i at layer lay. Throws if it is not set
+
+
+
+
+- T
+access
+
+
+(T, S...)(Layer lay, string path, S rest);
+
+
+
+
+- t.
+access
+
+
+!T(lay,a,b,...) returns t.get(a,lay).get(b,lay).... if exists
+ and has type T. Returns null otherwise
+
+
+
- bool
empty
@@ -150,10 +215,42 @@
- Regard table as a cons-list and convert to an array
+
+
+
+- Tuple!(string,string,Value)[]
+direct_entries
+
+
+();
+
+
+
+
+- Get the list of direct entries ignoring prototypes in sorted order
+
+
+
+
+- Tuple!(string,string,Value)[]
+entries
+
+
+();
+
+
+
+
+- Get the whole list of observable
+entries
+
+
+ in unspecified order
+
@@ -164,11 +261,11 @@