Menu

#14 MAT READ Not Implemented

v1.0 (example)
open
nobody
None
5
2025-09-08
2025-09-08
Tom Lake
No

MAT READ is not recognized in multiple versions although it's listed in the individual text files. One example is in RSTS-11.

Related

Bugs: #14

Discussion

  • Paul Edwards

    Paul Edwards - 2025-09-08
    It appears to be operating as designed.
    
    I don't know if the design is wrong though.
    
    Here are the systems that "MAT READ" is supposed to run on:
    
    
    bwd_cmd.c:
    
    {
      C_MAT_READ,  /* UniqueID */
      "MAT READ arrayname",  /* Syntax */
      "Matrix read.",  /* Description */
      "MAT READ",  /* Name */
      S70 | D64 | G74 | H14 | HB1 | HB2 | G65 | G67 | D71 | I70 | I73  /* OptionVersionBitmask */
    },
    
    
    I took the last one, I73:
    
    bwb_tbl.c:
    
    {
     "SYSTEM/370",                /* Name */
     I73,                                /* OptionVersionBitmask */
     "I73",                        /* ID */
     "IBM System/370 Mainframe BASIC",        /* Description */
    
    
    
    bwbasic.h:
    
    /* OptionVersionValue */
    #define B15 (1UL<< 0)                /* Bywater    */
    #define S70 (1UL<< 1)                /* CALL/360   */
    #define C77 (1UL<< 2)                /* CBASIC-II  */
    #define D64 (1UL<< 3)                /* Dartmouth  */
    #define E78 (1UL<< 4)                /* ECMA-55    */
    #define E86 (1UL<< 5)                /* ECMA-116   */
    #define G74 (1UL<< 6)                /* GCOS       */
    #define HB1 (1UL<< 7)                /* Handbook1  */
    #define HB2 (1UL<< 8)                /* Handbook2  */
    #define H80 (1UL<< 9)                /* Heath      */
    #define G65 (1UL<<10)                /* Mark-I     */
    #define G67 (1UL<<11)                /* Mark-II    */
    #define M80 (1UL<<12)                /* MBASIC     */
    #define D73 (1UL<<13)                /* PDP-8      */
    #define D70 (1UL<<14)                /* PDP-11     */
    #define R86 (1UL<<15)                /* RBASIC     */
    #define D71 (1UL<<16)                /* RSTS-11    */
    #define I70 (1UL<<17)                /* System/360 */
    #define I73 (1UL<<18)                /* System/370 */
    #define T80 (1UL<<19)                /* TRS-80     */
    #define V09 (1UL<<20)                /* Vintage    */
    #define T79 (1UL<<21)                /* XBASIC     */
    #define H14 (1UL<<22)                /* Haart      */
    #define B93 (1UL<<23)                /* Bywater-2  */
    
    
    
    And then changed the profile:
    
    
    D:\devel\bwbasic>cvs diff -l
    cvs diff: Diffing .
    Index: profile.bas
    ======================================================
    RCS file: \cvsroot/bwbasic/profile.bas,v
    retrieving revision 1.4
    diff -r1.4 profile.bas
    1c1,2
    < option version "bywater"
    ---
    > rem option version "bywater"
    > option version "SYSTEM/370"
    
    D:\devel\bwbasic>
    
    
    
    And it recognizes the command:
    
    D:\devel\bwbasic>type test.bas
    MAT READ x
    
    D:\devel\bwbasic>bwbasic test.bas
    
    ERROR in line 1: Variable Not Declared
    
    D:\devel\bwbasic>
    
    
    
    I don't know if that is documented anywhere, but if
    you've read the documentation and that isn't specified
    and you think it should be documented, please feel free
    to submit a documentation patch.
    
    
    No idea how to use it myself, but the command is
    at least recognized.
    
     
    • Tom Lake

      Tom Lake - 2025-09-08

      I have no idea what I was doing wrong before but it's working now. Sorry!

      Tom Lake

      -----Original Message-----
      From: bugs@bwbasic.p.re.sourceforge.net bugs@bwbasic.p.re.sourceforge.net
      On Behalf Of Paul Edwards
      Sent: Monday, September 8, 2025 4:07 AM
      To: [bwbasic:bugs] 14@bugs.bwbasic.p.re.sourceforge.net
      Subject: [bwbasic:bugs] #14 MAT READ Not Implemented

      It appears to be operating as designed.
      
      I don't know if the design is wrong though.
      
      Here are the systems that "MAT READ" is supposed to run on:
      
      
      bwd_cmd.c:
      
      {
        C_MAT_READ,  /* UniqueID */
        "MAT READ arrayname",  /* Syntax */
        "Matrix read.",  /* Description */
        "MAT READ",  /* Name */
        S70 | D64 | G74 | H14 | HB1 | HB2 | G65 | G67 | D71 | I70 | I73  /*
      OptionVersionBitmask */ },
      
      
      I took the last one, I73:
      
      bwb_tbl.c:
      
      {
       "SYSTEM/370",                /* Name */
       I73,                                /* OptionVersionBitmask */
       "I73",                        /* ID */
       "IBM System/370 Mainframe BASIC",        /* Description */
      
      
      
      bwbasic.h:
      
      /* OptionVersionValue */
      #define B15 (1UL<< 0)                /* Bywater    */
      #define S70 (1UL<< 1)                /* CALL/360   */
      #define C77 (1UL<< 2)                /* CBASIC-II  */
      #define D64 (1UL<< 3)                /* Dartmouth  */
      #define E78 (1UL<< 4)                /* ECMA-55    */
      #define E86 (1UL<< 5)                /* ECMA-116   */
      #define G74 (1UL<< 6)                /* GCOS       */
      #define HB1 (1UL<< 7)                /* Handbook1  */
      #define HB2 (1UL<< 8)                /* Handbook2  */
      #define H80 (1UL<< 9)                /* Heath      */
      #define G65 (1UL<<10)                /* Mark-I     */
      #define G67 (1UL<<11)                /* Mark-II    */
      #define M80 (1UL<<12)                /* MBASIC     */
      #define D73 (1UL<<13)                /* PDP-8      */
      #define D70 (1UL<<14)                /* PDP-11     */
      #define R86 (1UL<<15)                /* RBASIC     */
      #define D71 (1UL<<16)                /* RSTS-11    */
      #define I70 (1UL<<17)                /* System/360 */
      #define I73 (1UL<<18)                /* System/370 */
      #define T80 (1UL<<19)                /* TRS-80     */
      #define V09 (1UL<<20)                /* Vintage    */
      #define T79 (1UL<<21)                /* XBASIC     */
      #define H14 (1UL<<22)                /* Haart      */
      #define B93 (1UL<<23)                /* Bywater-2  */
      
      
      
      And then changed the profile:
      
      
      D:\devel\bwbasic>cvs diff -l
      cvs diff: Diffing .
      Index: profile.bas
      ======================================================
      RCS file: \cvsroot/bwbasic/profile.bas,v retrieving revision 1.4 diff -r1.4
      profile.bas
      1c1,2
      < option version "bywater"
      ---
      > rem option version "bywater"
      > option version "SYSTEM/370"
      
      D:\devel\bwbasic>
      
      
      
      And it recognizes the command:
      
      D:\devel\bwbasic>type test.bas
      MAT READ x
      
      D:\devel\bwbasic>bwbasic test.bas
      
      ERROR in line 1: Variable Not Declared
      
      D:\devel\bwbasic>
      
      
      
      I don't know if that is documented anywhere, but if you've read the
      documentation and that isn't specified and you think it should be
      documented, please feel free to submit a documentation patch.
      
      
      No idea how to use it myself, but the command is at least recognized.
      

      [bugs:#14] MAT READ Not Implemented

      Status: open
      Group: v1.0 (example)
      Created: Mon Sep 08, 2025 02:29 AM UTC by Tom Lake Last Updated: Mon
      Sep 08, 2025 02:29 AM UTC
      Owner: nobody

      MAT READ is not recognized in multiple versions although it's listed in the
      individual text files. One example is in RSTS-11.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/bwbasic/bugs/14/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #14


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.