From: SourceForge.net <no...@so...> - 2006-04-10 18:45:42
|
Bugs item #887174, was opened at 2004-01-29 11:45 Message generated for change (Settings changed) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=887174&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Lisp Core - Translator Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stavros Macrakis (macrakis) Assigned to: Nobody/Anonymous (nobody) Summary: genmatrix/lambda translate problem Initial Comment: f():=genmatrix(lambda([i,j],3),1,1) f() => matrix([3]) OK translate(f) f() => error This is because genmatrix's semantics are screwy. genmatrix allows a lambda-expression as a first argument (undocumented), but not a named function (because it treats symbols as array names) or a compiled function. This violates referential transparency. It also breaks translate. The translate case can be patched, either by allowing translated functions as first arg (more inconsistency!), or by having translate cons up a lambda- expression (yuck!). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=887174&group_id=4933 |