webmcp
changeset 514:297bedede137
Explain shortcuts for atom.type:new{...}
author | jbe |
---|---|
date | Mon Aug 21 13:15:05 2017 +0200 (2017-08-21) |
parents | 74463f7af123 |
children | a46e65880d8b |
files | doc/autodoc-header.htmlpart |
line diff
1.1 --- a/doc/autodoc-header.htmlpart Mon Aug 21 05:40:28 2017 +0200 1.2 +++ b/doc/autodoc-header.htmlpart Mon Aug 21 13:15:05 2017 +0200 1.3 @@ -203,7 +203,7 @@ 1.4 Both atom.integer and atom.number refer to Lua's base type “number”. 1.5 </p> 1.6 <p> 1.7 - New values of atom data types are created by either calling <tt>atom.<i>type</i>:load(string_representation)</tt> or by calling <tt>atom.<i>type</i>{...}</tt>, e.g. <tt>atom.date{year=1970, month=1, day=1}</tt>. You can dump any atom value as a string by calling <a href="#atom.dump"><tt>atom.dump(value)</tt></a> and later reload it with <tt>atom.<i>type</i>:load(string)</tt>. 1.8 + New values of atom data types are created by either calling <tt>atom.</tt><i>type</i><tt>:load(string_representation)</tt> or by calling <tt>atom.</tt><i>type</i><tt>{...}</tt>, e.g. <tt>atom.date{year=1970, month=1, day=1}</tt>. Note that <tt>atom.date{...}</tt> is a shortcut for <tt><a href="#atom.date:new">atom.date:new</a>{...}</tt>. You can dump any atom value as a string by calling <a href="#atom.dump"><tt>atom.dump(value)</tt></a> and later reload it with <tt>atom.</tt><i>type</i><tt>:load(string)</tt>. 1.9 </p> 1.10 <h2>Using the Object-Relational Mapper “mondelefant”</h2> 1.11 <p>