Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable characters
#1
Did you ever notice there are 32 symbols on the standard 102-key natural keyboard and only 1 can be used in a variable name!?

Code: (Select All)
Rem all 32 symbolic characters.
'dim x~.a as inetegr
'dim x.a` as intrger
'dim x!.a as integer
'dim x@.a as integer
'dim x#.a as integer
'dim x$.a as integer
'dim x%.a as integer
'dim x^.a as integer
'dim x&.a as integer
'dim x*.a as integer
'dim x(.a as integer
'dim x).a as integer
'dim x_.a as integer
'dim x-.a as integer
'dim x+.a as integer
'dim x=.a as integer
'dim x|.a as integer
'dim x\.a as integer
'dim x{.a as integer
'dim x[.a as integer
'dim x}.a as integer
'dim x].a as integer
'dim x:.a as integer
'dim x;.a as integer
'dim x".a as integer
'dim x<.a as integer
'dim x,.a as integer
'dim x>.a as integer
'dim x'.a as integer
Dim x.a As Integer
'dim x?.a as integer
'dim x/.a as integer
Reply
#2
Actually, I can easily use 12 symbols in my variable names.  Can I ask what version of BASIC you're referring to, as I don't think it's QB64.  Now, is there any missing symbols that I didn't include?   You have to decide that for yourself!

Code: (Select All)
Dim xa% '% is used herre
Dim xa! '! is used here
Dim xa& '& is used here
Dim xa~% '~ is used here
Dim xa# '# is used here
Dim xa` '` is used here
Dim xa$ '$ is used here
Dim x.a '. is used here
Dim x_a '_ is used here
Dim x(0) '( is used here
Dim a(0) ' ) is used here
Dim xa(0, 0) ', is used here
Reply
#3
More about symbols:

Code: (Select All)
Rem Dual operators:
x`1 = 1
x~` = 1
x%% = 1
x~& = 1
x&& = 1
x## = 1
x%& = 1
x$1 = "a"

Rem Triple operators:
x~&& = 1
x~%& = 1

Rem  Doesn't exist:
x$$ = "a"
Reply
#4
In the 'C' programming language there are also some symbols:

Code: (Select All)
c=1
c=c+1
c++
c+=1
Reply
#5
In the SICK interpreter the following triple operators exist:

Code: (Select All)
Triple variable assignment operators:

  +++  increment variable by one.
  ---  decrement variable by one.
  !!=  assign not value, for example: x!!=10
  &&=  assign and value
  ||=  assign or value
  ++=  assign addition value
  --=  assign negative value
  **=  assign multiple value
  //=  assign division value
  \\=  assign integer division value
  ^^=  assign power value
  ^+=  exponentiate value
  ^-=  exponentiate negative value
  <<=  shift left by multiples of 2
  >>=  shift right by multiples of 2
Reply
#6
I must be missing something here.  What's all this got to do with QB64, and what's the utility?  Are you asking for help?  Trying to teach a lesson?  Just rambling off-topic?

You've completely lost me here as to what you're going on about in this entire thread.
Reply
#7
(10-19-2024, 03:45 AM)SMcNeill Wrote: I must be missing something here.  What's all this got to do with QB64, and what's the utility?  Are you asking for help?  Trying to teach a lesson?  Just rambling off-topic?

You've completely lost me here as to what you're going on about in this entire thread.

Sorry, I was being entirely off-topic concerning posts about symbols, operators, and variable assignments in this thread.

Don't worry about it Exclamation 

Erik.
Reply
#8
Quote:What's all this got to do with QB64, and what's the utility?
Actually it has a lot to do with QB64 and the SICK utility. This file can be found on several posts when searching for:

  SICK64F9.ZIP

specifies many additional triple symbolic operators..

Erik.


Attached Files
.zip   SICK64F9.ZIP (Size: 506.18 KB / Downloads: 27)
Reply




Users browsing this thread: 2 Guest(s)