From 96970bdaca77f0abe493ff791d9c42b8f79bb80d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 7 Aug 2011 22:14:49 +0000 Subject: * interp/define.boot (templateVal): Fold into expantTypeArgs. Remove. --- src/interp/define.boot | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/interp') diff --git a/src/interp/define.boot b/src/interp/define.boot index 11d928fc..22c0711d 100644 --- a/src/interp/define.boot +++ b/src/interp/define.boot @@ -292,8 +292,8 @@ getExportCategory form == op is 'Record => ['RecordCategory,:argl] op is 'Union => ['UnionCategory,:argl] op is 'Enumeration => ['EnumerationCategory,:argl] - functorModemap := getConstructorModemapFromDB op - [[.,target,:tl],:.] := functorModemap + op is 'Mapping => ['MappingCategory,:argl] + [[.,target,:tl],:.] := getConstructorModemapFromDB op applySubst(pairList($FormalMapVariableList,argl),target) NRTextendsCategory1(domform,exCategory,addForm) == @@ -372,18 +372,11 @@ expandType(lazyt,template,domform) == [functorName,:[expandTypeArgs(a,template,domform) for a in argl]] expandTypeArgs(u,template,domform) == - u is '$ => u --template.0 -------eliminate this as $ is rep by 0 - integer? u => expandType(templateVal(template, domform, u), template,domform) - u is ['NRTEVAL,y] => y --eval y - u is ['QUOTE,y] => y + u is '$ => u + integer? u => expandType(vectorRef(template,u),template,domform) + u is [.,y] and u.op in '(NRTEVAL QUOTE) => y u isnt [.,:.] => u expandType(u,template,domform) - -templateVal(template,domform,index) == ---returns a domform or a lazy slot - index = 0 => BREAK() --template - vectorRef(template,index) - --% Subdomains -- cgit v1.2.3