Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.alt.folklore.computer > #44619

Re: 60 Jahre BASIC

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups de.alt.folklore.computer
Subject Re: 60 Jahre BASIC
Date 2024-05-09 12:32 +0200
Message-ID <la3n18Fek12U4@mid.individual.net> (permalink)
References <v1al34$2lav$14@solani.org> <v1ftkc$pc2$1@solani.org> <BASIC-20240508142441@ram.dialup.fu-berlin.de> <BASIC-20240508150340@ram.dialup.fu-berlin.de> <slrnv3nl6h.1fdo8.hjp-usenet4@trintignant.hjp.at>

Show all headers | View raw


Peter J. Holzer, 2024-05-08 21:38:

> On 2024-05-08 14:04, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
>>   Typisch für BASIC sind für mich die bei anderen Sprachen so nicht
>>   zu findenden Anweisungen "DATA" und "READ". Wie in
> [...]
>>   . Außerdem typisch die MAT-Anweisungen wie in
>>
>> MAT Z = X * Y
> 
> Das ist typisch für BASIC?

Nein, zumindest nicht im "Original" Dartmouth BASIC.

Siehe auch: <https://www.dartmouth.edu/basicfifty/commands.html>

Hier ist es aber beschrieben, Seite 150 des PDF:

<http://www.bitsavers.org/pdf/phaseOneSystems/oasis/BASIC_Language_Reference_Manual_Mar80.pdf>

Zitat:

1 MAT <array name> = <array name>
2 MAT <array name> = (<expression>)

See also: LET statement

Purpose:

The MAT statement allows you to either copy one array to another or to
assign one value to all of the elements of an array.

Comment:

Format 1 of the MAT statement copies one array to another. Both arrays
must have the same dimensions or a "Subscript Range" error will occur.

Forrmat 2 of the MAT statement sets all elements of the array to a
specific value.

Example:                         Explanation:

0010 DIM A$(5),B$(5),C(20)       Define size of arrays A$, B$, and C
0020 FOR I%=0 TO 5               Set array B$ to initial values
0030 B$(I%) = STR(I%)
0040 NEXT
0050 MAT A$ = B$                 Copies B$ into A$ (B$ unchanged)
0060 MAT B$ = ("")               Sets all 6 elements in B$ to be empty.
0070 MAT C = (1)                 Sets all 21 elements of C to be 1.

(Zitat Ende)

> Ich glaube nicht, dass einer der BASIC-Dialekte, die ich in den
> 80er-Jahren verwendet habe, dieses Kommando kannte.

Ich kann mich auch nicht erinnern. Vermutlich wurde das bei vielen
Dialekten einfach weggelassen.

-- 
Arno Welzel
https://arnowelzel.de

Back to de.alt.folklore.computer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

60 Jahre BASIC "F. W." <me@home.invalid> - 2024-05-06 15:14 +0200
  Re: 60 Jahre BASIC Sebastian Barthel <naitsabes@freenet.de> - 2024-05-08 13:10 +0000
    Re: 60 Jahre BASIC "Peter J. Holzer" <hjp-usenet4@hjp.at> - 2024-05-08 21:38 +0200
      Re: 60 Jahre BASIC Arno Welzel <usenet@arnowelzel.de> - 2024-05-09 12:32 +0200
      Re: 60 Jahre BASIC Sebastian Barthel <naitsabes@freenet.de> - 2024-05-09 13:57 +0000
        Re: 60 Jahre BASIC Arno Welzel <usenet@arnowelzel.de> - 2024-05-09 17:45 +0200
          Re: 60 Jahre BASIC Sebastian Barthel <naitsabes@freenet.de> - 2024-05-09 18:06 +0000
        Re: 60 Jahre BASIC Arno Welzel <usenet@arnowelzel.de> - 2024-05-09 17:46 +0200
    Re: 60 Jahre BASIC Wolf gang P u f f e <remail@gmx.com> - 2024-05-09 11:14 +0200
      Re: 60 Jahre BASIC Sebastian Barthel <naitsabes@freenet.de> - 2024-05-09 13:55 +0000
        Re: 60 Jahre BASIC Sebastian Barthel <naitsabes@freenet.de> - 2024-05-09 18:03 +0000
    Re: 60 Jahre BASIC Thomas Koenig <tkoenig@netcologne.de> - 2024-05-09 14:05 +0000
  Re: 60 Jahre BASIC Hermann Riemann <nospam.ng@hermann-riemann.de> - 2024-05-08 16:31 +0200

csiph-web