[Top][All Lists]

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

Re: Format by example

From: Dr . Jürgen Sauermann
Subject: Re: Format by example
Date: Sat, 8 Aug 2020 14:59:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Hi Bill,

I believe I have fixed this, SVN 1334.

However, I would try to avoid "format by example" where possible. It looks simple at
first glance, but seems to allow somewhat  quirky format strings (e.g. numbers with
multiple decimal points) whose proper implementation would require far more effort
than the current implementation.

Best Regards,

On 8/6/20 10:09 PM, Bill Daly wrote:
I was not really sure of how format by example worked:

      'This is a description 55,550.' ⍕ t1[1;1]

Assertion failed: row.size() == format.size()
in Function:      format_by_example
in file:          Bif_F12_FORMAT.cc:289

Call stack:

-- Stack trace at Bif_F12_FORMAT.cc:289
0x7FA80A0F4B97 __libc_start_main
0x5574C5E7DFE5  main
0x5574C6006085   Workspace::immediate_execution(bool)
0x5574C5EDEAB8    Command::process_line()
0x5574C5EDF6F8     Command::do_APL_expression(UCS_string&)
0x5574C5EDEBCD      Command::finish_context()
0x5574C5EE7C37       Executable::execute_body() const
0x5574C5FA4734        StateIndicator::run()
0x5574C5F1E470         Prefix::reduce_statements()
0x5574C5F16A52          Prefix::reduce_A_F_B_()
0x5574C5EA29E3           Bif_F12_FORMAT::eval_AB(Value_P, Value_P)
0x5574C5EA2701 Bif_F12_FORMAT::format_by_example(Value_P, Value_P)
0x5574C5E93EE7             do_Assert(char const*, char const*, char const*, int)

SI stack:

Depth:      0
Exec:       0x5574c8288a90
Safe exec:  0
Pmode:      ◊  'This is a description 55,550.' ⍕ t1[1;1]
PC:         8 (10) ENDL
Stat:       'This is a description 55,550.' ⍕ t1[1;1]
err_code:   0x0



-- Stack trace at main.cc:88

Process apl exited abnormally with code 3


reply via email to

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