From 548480b06b668a860a8818390ee2c3d3c3c291d3 Mon Sep 17 00:00:00 2001
From: Ferdinand Majerech
Date: Mon, 17 Oct 2011 12:53:38 +0200
Subject: [PATCH] Changed the Constructor API (for loading of custom types) to
make it easier to load custom classes/structs. Updated API docs, tutorials
and examples accordingly.
---
doc/doctrees/environment.pickle | Bin 12705 -> 12705 bytes
doc/doctrees/tutorials/custom_types.doctree | Bin 46858 -> 47409 bytes
doc/html/_sources/tutorials/custom_types.txt | 61 +++--
doc/html/api/dyaml.constructor.html | 79 +++---
doc/html/articles/spec_differences.html | 2 +-
doc/html/index.html | 2 +-
doc/html/search.html | 2 +-
doc/html/searchindex.js | 2 +-
doc/html/tutorials/custom_types.html | 63 +++--
doc/html/tutorials/getting_started.html | 2 +-
doc/html/tutorials/yaml_syntax.html | 2 +-
docsrc/tutorials/custom_types.rst | 61 +++--
dyaml/constructor.d | 245 +++++++++----------
dyaml/node.d | 3 +-
examples/constructor/main.d | 103 ++++----
examples/resolver/main.d | 103 ++++----
test/data/construct-custom.data | 2 -
test/src/constructor.d | 31 +--
test/src/representer.d | 4 +-
19 files changed, 371 insertions(+), 396 deletions(-)
diff --git a/doc/doctrees/environment.pickle b/doc/doctrees/environment.pickle
index b0bf0109b44443d19c3c0f979e740ee2f2eae1b0..a65f29ac86f28b20fbb4959739081a1f807368f1 100644
GIT binary patch
delta 63
zcmZ3OyfAq~tG>~4CMBbJQ!|v^9WMi!S}i>pIuNG*$?qAa5T@?hTN!o`rgog^=I#2g
F7y%wX80Y{1
delta 63
zcmZ3OyfAq~tG>~)oZr1x*D{pd9WMi!E!UYcbRf(wuXP!w5N3zW>-=I#2g
F7y;=#AH@Iw
diff --git a/doc/doctrees/tutorials/custom_types.doctree b/doc/doctrees/tutorials/custom_types.doctree
index 5f0a4562a8d58a78eec846a8539c3bae406e5241..46a4fd0d1e78349547482f92e4382279b8e7a92d 100644
GIT binary patch
delta 7788
zcmeHMd0DK&iT&w-6i*2Ncy2$OtZtF!~
zg)i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