Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-libraries
Commits
e0efcd2b
Commit
e0efcd2b
authored
Jan 05, 2018
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gDefault instance for RECORD and export gDefault instance for UNIT
parent
b9a5e4ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Libraries/GenLib/GenDefault.dcl
Libraries/GenLib/GenDefault.dcl
+1
-2
Libraries/GenLib/GenDefault.icl
Libraries/GenLib/GenDefault.icl
+7
-7
No files found.
Libraries/GenLib/GenDefault.dcl
View file @
e0efcd2b
...
...
@@ -4,7 +4,6 @@ import StdGeneric
generic
gDefault
a
::
a
derive
gDefault
Int
,
Real
,
String
,
PAIR
,
EITHER
,
CONS
,
FIELD
,
OBJECT
derive
gDefault
Int
,
Real
,
String
,
UNIT
,
PAIR
,
EITHER
,
CONS
,
FIELD
,
OBJECT
,
RECORD
derive
gDefault
[],
(,),
(,,),
(,,,),
(,,,,),
(,,,,,),
(,,,,,,),
(,,,,,,,)
Libraries/GenLib/GenDefault.icl
View file @
e0efcd2b
implementation
module
GenDefault
//import StdClass, StdArray, StdInt, StdFunc
import
StdGeneric
generic
gDefault
a
::
a
gDefault
{|
Int
|}
=
0
gDefault
{|
Real
|}
=
0.0
gDefault
{|
String
|}
=
""
gDefault
{|
UNIT
|}
=
UNIT
generic
gDefault
a
::
a
gDefault
{|
Int
|}
=
0
gDefault
{|
Real
|}
=
0.0
gDefault
{|
String
|}
=
""
gDefault
{|
UNIT
|}
=
UNIT
gDefault
{|
EITHER
|}
dl
dr
=
RIGHT
dr
gDefault
{|
EITHER
|}
dl
dr
=
LEFT
dl
gDefault
{|
PAIR
|}
dl
dr
=
PAIR
dl
dr
gDefault
{|
CONS
|}
dc
=
CONS
dc
gDefault
{|
FIELD
|}
df
=
FIELD
df
gDefault
{|
OBJECT
|}
do
=
OBJECT
do
gDefault
{|
RECORD
|}
dr
=
RECORD
dr
derive
gDefault
[],
(,),
(,,),
(,,,),
(,,,,),
(,,,,,),
(,,,,,,),
(,,,,,,,)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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