[Aimmath-developers] [ aimmath-Bugs-765268 ] variables in procedures
Brought to you by:
gustav_delius,
npstrick
From: SourceForge.net <no...@so...> - 2003-08-27 14:02:38
|
Bugs item #765268, was opened at 2003-07-03 12:08 Message generated for change (Settings changed) made by gustav_delius You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=439479&aid=765268&group_id=44411 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Gustav W Delius (gustav_delius) Assigned to: Nobody/Anonymous (nobody) Summary: variables in procedures Initial Comment: The following harmless looking question gives a compilation error Type error in assignment: field IProc in class `aim/TextQuestion` should have type procedure h> a1:=1; f:=x->a1; t> ? a> 1 end> However the following works: h> a1:=1; f:=proc(x) global a1; a1 end proc; t> ? a> 1 end> Is this expected behaviour or a bug? ---------------------------------------------------------------------- Comment By: Neil Strickland (npstrick) Date: 2003-07-03 12:53 Message: Logged In: YES user_id=430681 This problem is caused by a bug in the makeglobal function in the codegen package, which is (as of Maple 8) deprecated in favour of the ToInert function and related utilities. I therefore propose to do nothing about it until I get around to rewriting the `aim/Compile` function to use ToInert. Neil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=439479&aid=765268&group_id=44411 |