> 
> https://github.com/oldk1331/fricas/commit/66ef818c3c4cbbdf8754f9c84a21d1b5ae34750b.patch
> 

Sorry for delay.  I am still thinking about API.

1) It is normal that we need to use result of destructive
operation and can not relay on side effects.

2) It is disturbing of side effect appear on argument of
'construct' (which may happen if we omit copy during 'construct').

3) It is very disturbing that results of 'parts' may be modified
by destructive operations on aggregate:

(1) -> q := queue([1, 2, 3])$Queue(Integer)

   (1)  [1,2,3]
                                                         Type: Queue(Integer)
(2) -> l := parts(q)

   (2)  [1,2,3]
                                                          Type: List(Integer)
(3) -> enqueue!(0, q)

   (3)  0
                                                     Type: NonNegativeInteger
(4) -> l

   (4)  [1,2,3,0]
                                                          Type: List(Integer)


-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to