Subject: Re: [Q] Limitation of variables?
From: Erik Naggum <erik@naggum.net>
Date: Fri, 11 May 2001 11:36:05 GMT
Newsgroups: comp.lang.lisp
Message-ID: <3198569747076643@naggum.net>

* Sungwoo Lim
> > Error: Too many arguments (no opt/rest)
> > While executing: PUT-STROKE-INFO

  That looks like an argument count mismatch to me, specifically that you
  invoked the function with too many arguments relative to the number of
  parameters you specified in the lambda list.

  Could you run the same examples I ran here for me?

(1) cl-user
(defun example-1 (aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as
		  at au av aw ax ay az ba bb bc bd be bf bg bh bi bj bk bl
		  bm bn bo bp bq br bs bt bu bv bw bx by bz ca cb cc cd ce
		  cf cg ch ci cj ck cl cm cn co cp cq cr cs ct cu cv cw cx
		  cy cz da db dc dd de df dg dh di dj dk dl dm dn do dp dq
		  dr ds dt du dv dw dx dy dz)
  (and aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw
       ax ay az ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs bt
       bu bv bw bx by bz ca cb cc cd ce cf cg ch ci cj ck cl cm cn co cp cq
       cr cs ct cu cv cw cx cy cz da db dc dd de df dg dh di dj dk dl dm dn
       do dp dq dr ds dt du dv dw dx dy dz))
(1) cl-user
=> example-1
(2) cl-user
(example-1 'aa 'ab 'ac 'ad 'ae 'af 'ag 'ah 'ai 'aj 'ak 'al 'am 'an 'ao 'ap
	   'aq 'ar 'as 'at 'au 'av 'aw 'ax 'ay 'az 'ba 'bb 'bc 'bd 'be 'bf
	   'bg 'bh 'bi 'bj 'bk 'bl 'bm 'bn 'bo 'bp 'bq 'br 'bs 'bt 'bu 'bv
	   'bw 'bx 'by 'bz 'ca 'cb 'cc 'cd 'ce 'cf 'cg 'ch 'ci 'cj 'ck 'cl
	   'cm 'cn 'co 'cp 'cq 'cr 'cs 'ct 'cu 'cv 'cw 'cx 'cy 'cz 'da 'db
	   'dc 'dd 'de 'df 'dg 'dh 'di 'dj 'dk 'dl 'dm 'dn 'do 'dp 'dq 'dr
	   'ds 'dt 'du 'dv 'dw 'dx 'dy 'dz)
=> dz
(3) cl-user
(example-1 'aa 'ab 'ac 'ad 'ae 'af 'ag 'ah 'ai 'aj 'ak 'al 'am 'an 'ao 'ap
	   'aq 'ar 'as 'at 'au 'av 'aw 'ax 'ay 'az 'ba 'bb 'bc 'bd 'be 'bf
	   'bg 'bh 'bi 'bj 'bk 'bl 'bm 'bn 'bo 'bp 'bq 'br 'bs 'bt 'bu 'bv
	   'bw 'bx 'by 'bz 'ca 'cb 'cc 'cd 'ce 'cf 'cg 'ch 'ci 'cj 'ck 'cl
	   'cm 'cn 'co 'cp 'cq 'cr 'cs 'ct 'cu 'cv 'cw 'cx 'cy 'cz 'da 'db
	   'dc 'dd 'de 'df 'dg 'dh 'di 'dj 'dk 'dl 'dm 'dn 'do 'dp 'dq 'dr
	   'ds 'dt 'du 'dv 'dw 'dx 'dy 'dz nil)
Error: example-1 got 105 args, wanted 104 args.
  [condition type: program-error]

  So my bet it is either this or some function called by put-stroke-info
  that gets too many arguments for its lambda list.

#:Erik
-- 
  Travel is a meat thing.