Jon,
I don't know if this is possible or even desirable, but what about adding an optional parameter to the Dim/Global/Local keywords that you can use to declare a variables type? Samples:
Dim $sMyVar As String
Dim $iMyVar As Integer
Dim $dMyVar As Double or Float
Global $sMyVar As String
Global $iMyVar As Integer
Global $dMyVar As Double or Float
Local $sMyVar As String
Local $iMyVar As Integer
Local $dMyVar As Double or Float
What do you all think?
Variable Declarations and Type
Started by
jlandes
, Dec 15 2003 03:06 AM
2 replies to this topic
#1
Posted 15 December 2003 - 03:06 AM
Sincerely yours,Jeremy Landesjlandes@landeserve.com
#2
Posted 15 December 2003 - 09:13 AM
If the new beta works OK then there is no integer type any more and as stuff like
$var1 = 10
$var2 = "20"
msgbox(0, "", $var1 * $var2)
msgbox(0, "", $var1 & $var2)
works fine, I don't see much demand for it. Unless you can think of a case it is required?
$var1 = 10
$var2 = "20"
msgbox(0, "", $var1 * $var2)
msgbox(0, "", $var1 & $var2)
works fine, I don't see much demand for it. Unless you can think of a case it is required?
#3
Posted 15 December 2003 - 01:09 PM
well john, here is one idea. that might work. when you are done with the beta testing and adding everything everyone wishes. you could off this. one with all the quote unuqote crap taken out and mark that as autoit version 3, and one of the same stuff in it but with everything left untouched, and mark it as autoit advanced version 3 . so you can have it both ways.
in other words, when you are done and before you start cutting out the varibles or other uneeded stuff, mark it as advanced, lol. cuz you never know with people. there will always be something that someone wants. like i want a simple menuing system, but that is just me. yeah i know that is getting into bloat programming.


0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




