Post Reply 
Questions about Strings and Matrices - buffer?
07-04-2017, 09:10 AM (This post was last modified: 07-04-2017 05:53 PM by Carlos295pz.)
Post: #1
Questions about Strings and Matrices - buffer?
Hello everyone, I came up with these doubts some time ago, I would like to understand a little more the reasons for these differences.

1. If I have an extensive program (2), when using in Home for example: Programs(2), the history succeeds in displaying the entire string even if it has more than 65,535 characters. Why ?, What is the difference of the Home history? Home Buffer?

2. Why the MAKEMAT() command only allows me to create an matrix with a maximum of 19,999 elements, if when created with this form does not fail:
Code:
Exmpl2
BEGIN
  LOCAL n=200,mtx=[[0]];
  FOR X:=20 TO n DO
    FOR Y:=20 TO n DO
      mtx[X,Y]:=0;      //mtx → 200x200 = 40,000 elements
    END
  END
END;
A buffer again? Doing this allows you to create very large matrices

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
07-04-2017, 10:35 PM
Post: #2
RE: Questions about Strings and Matrices - buffer?
I'm not understanding your point #1.

2) Is because matrices are limited to 20000 items. Lists are limited to 10000. Looks like the "expansion" code is not checking the size which it should be.

What is the purpose for such a large matrix?

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
07-05-2017, 12:57 AM (This post was last modified: 07-05-2017 12:58 AM by Carlos295pz.)
Post: #3
RE: Questions about Strings and Matrices - buffer?
(07-04-2017 10:35 PM)Tim Wessman Wrote:  I'm not understanding your point #1.

Quisiera saber por qué en Home sí se puede mostrar una cadena de más de 65535 caracteres.
[Image: 34916058653_92cf93445d_o.png]

(07-04-2017 10:35 PM)Tim Wessman Wrote:  2) Is because matrices are limited to 20000 items. Lists are limited to 10000. Looks like the "expansion" code is not checking the size which it should be.

What is the purpose for such a large matrix?

Some programs I've created require using 198x198 matrices and maybe a little more.



Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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