Author Topic: DIM syntax from FreeBASIC  (Read 8146 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: DIM syntax from FreeBASIC
« Reply #45 on: November 01, 2020, 01:07:29 pm »
And ~’ for unsigned bits, and ‘n for number of bits.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: DIM syntax from FreeBASIC
« Reply #46 on: November 01, 2020, 01:15:07 pm »
about syntax:
I find interesting the idea to use
Code: QB64: [Select]
  1.  DIM set of variables AS TYPE
, in this case DIM and AS TYPE work like {} of the other languages and for this reason for each AS TYPE must be typed a DIM... and this brings to a result similar to the discussion on Discord to let declare one type of data for line of code with the new syntax of DIM
Code: QB64: [Select]
  1. DIM AS INTEGER a, b, c ', etc...
  2. DIM AS SINGLE d, e, f ', etc...

Surely old and new syntax CANNOT be mixed on the same line of code!  (as you can see code is a SINGLE variable  :-P)

Programming isn't difficult, only it's  consuming time and coffee