new XML modules
This commit is contained in:
parent
d4107728d3
commit
f721ddd75b
11 changed files with 731 additions and 93 deletions
|
|
@ -1257,7 +1257,9 @@ proc echo*[Ty](x: openarray[Ty]) {.magic: "Echo".}
|
|||
## equivalent to ``writeln(stdout, x); flush(stdout)``. BUT: This is
|
||||
## available for the ECMAScript target too!
|
||||
|
||||
template newException(exceptn, message: expr): expr =
|
||||
template newException*(exceptn, message: expr): expr =
|
||||
## creates an exception object of type "exceptn" and sets its ``msg`` field
|
||||
## to `message`. Returns the new exception object.
|
||||
block: # open a new scope
|
||||
var
|
||||
e: ref exceptn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue