tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-1.l
Normal file
10
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-1.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
: (setq A (new '(+Cls1 +Cls2) 'attr1 123 'attr2 "def" 'attr3 (4 2 0) 'attr4 T))
|
||||
-> $385603635
|
||||
|
||||
: (show A)
|
||||
$385603635 (+Cls1 +Cls2)
|
||||
attr4
|
||||
attr3 (4 2 0)
|
||||
attr2 "def"
|
||||
attr1 123
|
||||
-> $385603635
|
||||
1
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-2.l
Normal file
1
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-2.l
Normal file
|
|
@ -0,0 +1 @@
|
|||
(putl (setq B (new (val A))) (getl A))
|
||||
7
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-3.l
Normal file
7
Task/Polymorphic-copy/PicoLisp/polymorphic-copy-3.l
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
: (show B)
|
||||
$385346595 (+Cls1 +Cls2)
|
||||
attr1 123
|
||||
attr2 "def"
|
||||
attr3 (4 2 0)
|
||||
attr4
|
||||
-> $385346595
|
||||
Loading…
Add table
Add a link
Reference in a new issue