On 06/27/2016 05:19 PM, Waldek Hebisch wrote: > oldk1331 wrote: >> >>>>> Anyway, "destructive" in FriCAS means that (some) argument may be >>>>> modified, but there is not "will be modified" >>>> >>>> I think that only holds true for List. >>> >>> No. I don't currently have an example, but to my knowledge "destructive" >>> just means that one cannot rely on the fact that the arguments are >>> unchanged. It does not necessarily mean that the arguments really "are" >>> changed. >> >> I think, except for List, >> x := funxxx!(x, restargs) can be replaced by funxxx!(x, restargs) >> Waldek, is that true? (except for split!, I think) > > Well, except cases where you know that plain 'funxxx!(x, ...)' works > (like 'setelt!' on matrices) use 'x := funxxx!(x, ...)'.
See my other mail with the link to https://github.com/pippijn/aldor/blob/master/aldor/lib/aldor/src/arith/sal_lincomb.as#L49 One usually cannot rely on the fact that the argument is modified in such a way that it agrees with the return value. If it's not clearly specified, I would rather count that as a special exception like the setelt! functions. Ralf -- 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.
