#2519 global and local name mismatch for tables in blocks

None
open
nobody
None
5
2013-02-03
2012-12-17
syga
No

/ the following code produce a bug,when calling buggy(b)
because of a mismatch between the names
1- of the global table a
2- of the local function input a, when calling
/
kill(all)$
/ function definition /
buggy(a):=block(
[],
a[1,1]:0
)$
/ global a[1] declaration /
a[1]:25;
b:matrix([1,2])$
/ call buggy with b /
buggy(b)$
/ added to report the bug /
bug_report();
/----------------------------------
MAXIMA OUTPUT
----------------------------------
/
Array a has dimension 1; it was called by a[1,1]

0: buggy(a=matrix([1,2]))

-- an error. To debug this try: debugmode(true);

/----------------------------------
bug_report OUTPUT
----------------------------------
/

The Maxima bug database is available at
http://sourceforge.net/tracker/?atid=104933&group_id=4933&func=browse
Submit bug reports by following the 'Add new' link on that page.
Please include the following information with your bug report:


Maxima version: 5.20.1
Maxima build date: 8:48 2/16/2010
Host type: i686-pc-linux-gnu
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.7


The above information is also reported by the function 'build_info'.

1 Attachments

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks