rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

no doc for "push" or "pop" #3094

Closed rtoy closed 1 week ago

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:41:10 Created by willisbl on 2008-08-20 14:46:11 Original: https://sourceforge.net/p/maxima/bugs/1479


There is no user documentation for the macros push or pop. These macros are defined in "basic." Also, I recommend that these functions autoload.

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:41:11 Created by crategus on 2010-07-04 11:16:40 Original: https://sourceforge.net/p/maxima/bugs/1479/#4043


Documentation has been added to Lists.texi revision 1.37.

The functions push and pop are not suitable for autoload. The functions expect a symbol as an argument which is bound to a list. But in the first call, the arguments are already evaluated and the call fails with an error. So a user would have to do push( expr, 'll) in a first call and push(expr, ll) later. That is confusing.

Closing this bug report as fixed. The functions push and pop are not added to the autoload functions.

Dieter Kaiser