Post Reply 
Bug with CONCAT
01-02-2014, 11:21 PM
Post: #11
RE: Bug with CONCAT
(01-02-2014 11:07 PM)Terje Vallestad Wrote:  
(01-02-2014 04:23 PM)Helge Gabert Wrote:  I've come across a problem with CONCAT and two arguments (firmware 5447).

Try CONCAT(5,6) returns 0. ???

CONCAT(5,6,7) returns [ 5 6 7 ], as it should.

In a program, for now, one can get around this problem with defining a list first, e.g.,

l:= {}

l:=CONCAT(l,5);

l:=CONCAT(l,6);

RETURN (l); returns the list {5, 6}.

I thought I should mention this because I got unexpected results in my program, and was finally able to trace it - - I called RETURN(CONCAT(v1,v2)) and obtained 0.

Also CAS programs really should be debuggable (just like PPL programs) - - why is the DEBUG soft key missing for CAS programs in the editor?

I think if you try the function \( cat \) you will get the response you are looking for?

The user manual only states CONCAT to be used with lists so you may be confusing the parser?

Cheers, Terje

I'm not sure I understand you at all.

I'm trying to join two elements into a list (in CAS view, or in a CAS program). CONCAT is the correct command, and it doesn't work, because it returns zero.

Does it work for you?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Bug with CONCAT - Helge Gabert - 01-02-2014, 04:23 PM
RE: Bug with CONCAT - Helge Gabert - 01-02-2014, 04:34 PM
RE: Bug with CONCAT - Michael de Estrada - 01-02-2014, 05:52 PM
RE: Bug with CONCAT - Helge Gabert - 01-02-2014, 05:58 PM
RE: Bug with CONCAT - Michael de Estrada - 01-02-2014, 06:10 PM
RE: Bug with CONCAT - Alberto Candel - 01-02-2014, 06:39 PM
RE: Bug with CONCAT - Mark Hardman - 01-02-2014, 07:51 PM
RE: Bug with CONCAT - Michael de Estrada - 01-02-2014, 09:47 PM
RE: Bug with CONCAT - Terje Vallestad - 01-02-2014, 11:07 PM
RE: Bug with CONCAT - Michael de Estrada - 01-02-2014, 11:16 PM
RE: Bug with CONCAT - Helge Gabert - 01-02-2014 11:21 PM
RE: Bug with CONCAT - Terje Vallestad - 01-02-2014, 11:40 PM
RE: Bug with CONCAT - Helge Gabert - 01-02-2014, 11:58 PM
RE: Bug with CONCAT - Michael de Estrada - 01-03-2014, 12:11 AM
RE: Bug with CONCAT - Helge Gabert - 01-03-2014, 01:19 AM
RE: Bug with CONCAT - Michael de Estrada - 01-03-2014, 01:49 AM
RE: Bug with CONCAT - Helge Gabert - 01-03-2014, 02:03 AM



User(s) browsing this thread: 1 Guest(s)