# HG changeset patch # User jbe # Date 1503314105 -7200 # Node ID 297bedede137edcbc443b0404e25a6c99961035f # Parent 74463f7af12309a0876e71101ab62ee37a3735bf Explain shortcuts for atom.type:new{...} diff -r 74463f7af123 -r 297bedede137 doc/autodoc-header.htmlpart --- a/doc/autodoc-header.htmlpart Mon Aug 21 05:40:28 2017 +0200 +++ b/doc/autodoc-header.htmlpart Mon Aug 21 13:15:05 2017 +0200 @@ -203,7 +203,7 @@ Both atom.integer and atom.number refer to Lua's base type “number”.
- New values of atom data types are created by either calling atom.type:load(string_representation) or by calling atom.type{...}, e.g. atom.date{year=1970, month=1, day=1}. You can dump any atom value as a string by calling atom.dump(value) and later reload it with atom.type:load(string). + New values of atom data types are created by either calling atom.type:load(string_representation) or by calling atom.type{...}, e.g. atom.date{year=1970, month=1, day=1}. Note that atom.date{...} is a shortcut for atom.date:new{...}. You can dump any atom value as a string by calling atom.dump(value) and later reload it with atom.type:load(string).