Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
new-op
new-op
Commits
1412597a
Commit
1412597a
authored
Dec 05, 2014
by
Marco Antoniotti
💬
Browse files
Started to added some control on coercion.
parent
ae49909c
Changes
2
Hide whitespace changes
Inline
Side-by-side
new-op-pkg.lisp
View file @
1412597a
...
...
@@ -13,6 +13,7 @@
(
:export
"NEW"
"NEWQ"
)
(
:export
"TYPE-CONS"
)
(
:export
"REGISTER-STRUCTURE-CONSTRUCTOR"
)
(
:export
"*COERCE-NUMBERS-P*"
"*COERCE-ARRAY-ELEMENTS-P*"
)
)
...
...
new-op.lisp
View file @
1412597a
...
...
@@ -30,6 +30,23 @@
;; Other class/type names here.
))
;;;;---------------------------------------------------------------------------
;;;; Global Behavior Controlling Variables.
(
defparameter
*coerce-numbers-p*
nil
"If true numbers are coerced to the expected type (in number constructors).
The default is NIL."
)
(
defparameter
*coerce-array-elements-p*
nil
"If true array initial elements are coerced to the expected type.
The default is NIL."
)
;;;;---------------------------------------------------------------------------
;;;; Protocol.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment