IMO it depends on context, if x y had been previous chosen it must had a good
reason so I would use x y even it means x or y has different meaning. However if
there is conflict I would choose a better name for the arguments, eg in Tara,
NB. x.
NB.   row     The row we are going to insert the bitmap into
NB.   col     The column we are going to insert the bitmap into
NB.   x       The horizontal position (offset) of the image inside the cell.
NB.   y       The vertical position (offset) of the image inside the cell.
NB.   scale_x The horizontal scale
NB.   scale_y The vertical scale
NB. y.
NB.   bitmap  The bitmap filename
insertpicture=: 4 : 0
'rowcol xy scalexy'=. x.
if. 2 131072 e.~ 3!:0 rowcol do. rowcol=. A1toRC rowcol end.
'row col'=. rowcol
'x y'=. xy
'scalex scaley'=. scalexy
z=. processbitmap y.

there is conflict in y. so I assign y. to a more meaning name img

insertpicture=: 4 : 0
img=. y
'rowcol xy scalexy'=. x
if. 2 131072 e.~ 3!:0 rowcol do. rowcol=. A1toRC rowcol end.
'row col'=. rowcol
'x y'=. xy
'scalex scaley'=. scalexy
z=. processbitmap img



-- 
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to