>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Why is column 1 changed by setting iota-zero columns?
Rex.Swain
Why is column 1 changed by setting iota-zero columns?
Posted: Wednesday, February 07, 2007 7:17 PM (EST)

Is this a bug, or am I misunderstanding something...?

 

gridbug9;v;k
© Why is column 1 format disturbed by setting ¼0 columns?
© 20 Jan 2007  Rex Swain, Independent Consultant,
www.rexswain.com

© APL version 6.4.01
© Grid versions 5 0 20 0 and 6 4 0 1

Œwself„'fm' Œwi 'Create' 'Form'
   Œwi 'size' 8 62

Œwself„'.gr' Œwi 'Create' 'APL.Grid'
   v„Œwi 'XGridVersion'
   ':' Œwi 'caption' ('Grid xFormat Bug, Grid v ',•v)
   Œwi 'where' 0.5 1
   Œwi 'size' 7 60
   Œwi 'xCols' 4
   Œwi 'xRows' 4
   Œwi 'xValue' 1 1 (4 4½¼16)

   Œwi 'xFormat' 0 (¼4) "000'%'"
   © ‡‡ I would expect this line to have no effect,
   ©    but it changes column 1
   Œwi 'xFormat' 0 (¼0) "000" 


Comments:

Author Thread:
davin.church
Why is column 1 changed by setting iota-zero columns?
Posted: Wednesday, February 07, 2007 8:36 PM (EST)
I reported this kind of problem in http://apldn.apl2000.com/Discussion+Groups/APL+Grid+Object/APL+Grid+Object+Bug+Reports/3038.aspx, and wasn't particularly pleased to hear that this was by design.

     

Rex.Swain
Why is column 1 changed by setting iota-zero columns?
Posted: Thursday, February 08, 2007 10:26 AM (EST)
Thanks, Davin. I too am uncomfortable about this behavior. In APL, a scalar + a vector (S+V) produces a vector of the same length as V -- including when V is empty. Pat, could this be changed? Is it possible anyone exploits the current behavior on purpose?

     



APL2000 Official Web Site

May the smile on your face Come straight from your heart
--- Anonymous

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |