bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Quad ES message too long


From: Juergen Sauermann
Subject: Re: [Bug-apl] Quad ES message too long
Date: Mon, 16 Apr 2018 18:31:32 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi Bill,

I can;t really tell what your program is doing and how the fault resp. feature can be reproduced
in a simpler way. What I observed is, however, that the failed line seems to be the only one
where proto is a character scalar:

Working lines (first example only):

s1←tb_sched_init 'TB' 'Trial Balance'
JSA: proto is:
┏→━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃┏→━┓ 1 ┏→━━━━━━━━━━━━━┓ d 1010 1110 1310 1320 1390 1410┃
┃┃CA┃   ┃Current Assets┃                                ┃
┃┗━━┛   ┗━━━━━━━━━━━━━━┛                                ┃
┗∊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
JSA: 1⊃proto is:
┏→━┓
┃CA┃
┗━━┛
JSA: util∆stringp 1⊃prot is:
┏→┓
┃1┃
┗━┛



Failed line:

s1← s1 tb_line_init 'EQ' 15 'Equity' 'c' 3100 3990
JSA: proto is:
┏→━━━━━━━━━━━━━━━━━━┓
┃S 40 ┏→━━━━┓ c 5010┃
┃     ┃Sales┃       ┃
┃     ┗━━━━━┛       ┃
┗∊━━━━━━━━━━━━━━━━━━┛
JSA: 1⊃proto is:
┏━┓
┃S┃
┗━┛
JSA: util∆stringp 1⊃prot is:
┏━┓
┃0┃
┗━┛
LINE NAME MUST BE A CHARACTER STRING
      'ID' 'TB' 'title' 'A Schedule' 'lines' ('CA' 1 'Current Assets' 'd' (1010 1110 1
      310 1320 1390 1410) ' ' 'CL' 10 'Curren
      t Liabilities' 'c' (2010 211
      0 2310) ' ' 'LTD' 11 'Long-term Debt' 'c' (271
      0) ' ' 'EQ' 15 'Equit
      y' 'c' (3100 3990) ' ') 'fns' 'tb_sched_workpaper' tb_line_init 'S' 40 'Sales' 'c' 5010
      ^                                                                                                                                                                                                                                                                                                                                              ^

Are you sure that that is intended?


Best Regards,
/// Jürgen


On 04/16/2018 05:18 PM, Bill Daly wrote:
Jürgen,

I've attached the my apl library so that you can recreate my bug if need be.

My problem is the messages generated by Quod-es:

LINE NAME MUST BE A CHARACTER STRING
      'ID' 'TB' 'title' 'A Schedule' 'lines' ('CA' 1 'Current Assets' 'd' (1010 1110 1
      310 1320 1390 1410) ' ' 'CL' 10 'Curren
      t Liabilities' 'c' (2010 211
      0 2310) ' ' 'LTD' 11 'Long-term Debt' 'c' (271
      0) ' ' 'EQ' 15 'Equit
      y' 'c' (3100 3990) ' ') 'fns' 'tb_sched_workpaper' tb_line_init 'S' 40 'Sales' 'c' 5010
^ ^
The command line that generated this was:

s1← s1 tb_line_init 'S' 40 'Sales' 'c' 5010

and the particular line in tb_line_init was:

  ⎕es (~util∆stringp 1⊃proto)/'LINE NAME MUST BE A CHARACTER STRING'


If you unpack this tarball, edit exampleSession.apl and change the )load 1 tb to find tb.apl.  You should get my message.

If this is a feature not a bug just say 'Bill, this is a feature.'

Thanx


w


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]