Number: 1448

Date: 14-Jun-84 17':10':28

Submitter: Sannella.PA

Source: JonL.pa

Subject: Dwimifying (PROG2 A B C) gives error msg': too many args

Assigned To: JonL

Attn: 

Status: Closed

In/By: Harmony

Problem Type: Bug

Impact: Annoying

Difficulty: Easy

Frequency: Everytime

Priority: Perhaps

System: Language Support

Subsystem: Stack and Interpreter

Machine: 

Disk: 

Lisp Version: 

Source Files: 

Microcode Version: 

Memory Size: 

File Server: 

Server Software Version: 

Disposition: I changed PROG2 to be a lamba-nospread which returns it''s second arg; Dwim was apparently noting that the implementation was a lambda-spread with two arguments, and keying off that.  Also, it now complains if given fewer than two arguments (I''ve made a note to myself to update the documentation -- PROG2, unlike PROG1 and PROGN, is ill-defined for one arg).  JonL -- 6/25/84'
["Sannella" "20-Aug-84 19':12':25" Attn': Status':(Fixed->Closed)]

Description: '
Date': 12 Jun 84 23':30 PDT'
From': JonL.pa'
Subject': PROG2 troubles'
To': Masinter'
cc': LispSupport'
'
I thought this was fixed long ago -- while BCOMPLing a file with macros which expand into forms like (PROG2 A B C), it will complain at me that there are too many args to PROG2; whereas if I just DEFINEQ a function with this form, and COMPILE it in-core, there is no complaint.'
'
-- JonL --'
'
-----'
'
Date': 24 Jun 84 19':17 PDT'
From': JonL.pa'
Subject': Re': PROG2 troubles'
In-reply-to': masinter.pa''s message of 24-Jun-84 14':53':14 PDT'
To': masinter.pa'
cc': JonL.pa, LispSupport.pa'
'
I don''t know if there''s an AR -- maybe Mike does.'
'
However, I thought you had once fixed this one, and it seems to be cropping up again (presumably sometime during the past two months).'
'
It had something to do with dwimifying a PROG2, and DWIM noticing that PROG2 has an arglist of (FIRST SECOND), and thereby complaining if you had give it 3 args.  Could the change to DWIMMACROSFLG be responsible?'
'
-- JonL --'
'
-----'
'
Date': 25 Jun 84 15':12 PDT'
From': JonL.pa'
Subject': Re': PROG2 troubles'
In-reply-to': LispSupport.pa''s message of 25 Jun 84 09':46':40 PDT (Monday)'
To': LispSupport.pa'
cc': JonL.pa, Masinter'
'
This one turned out to be quite easy after all; I fixed it (in MACHINEINDEPENDENT) and edited the AR1448 accordingly.'
'
Basically, it was a Dwimify problem, so I also changed to title to say "Dwimifying ...." rather than "BCOMPLing ...".  Solution was simply to make  the interpreter''s version of PROG2 be a lambda-nospread rather than a lambda-spread of two arguments.'
'
-- JonL --'
'


Workaround: 

Test Case: 

Edit-By: Sannella

Edit-Date: 20-Aug-84 19':12':26