Undocumented Data Type Shortcut

BlitzMax Forums/BlitzMax Programming/Undocumented Data Type Shortcut

N(Posted 2005) [#1]
@ seems to create a byte (or something that gets cut off at 255, which says 'byte' to me).

E.g.,

Print 255@
Print 256@
Print 257@

Rem
Should print:
255
0
1
EndRem



skn3(Posted 2005) [#2]
and @@ is a short. Or you could just use :byte or :short


MrCredo(Posted 2005) [#3]
Print 256:Byte

is documented


BlitzSupport(Posted 2005) [#4]
Yeah, this is correct -- @ is byte and @@ is short. Looks like it got missed out.


MrCredo(Posted 2005) [#5]
i would love to see this :-)

byte=@
short=@@
int=@@@@
long=@@@@@@@@


N(Posted 2005) [#6]
MrCredo: Only if you're sadistic.


Bot Builder(Posted 2005) [#7]
lol@Credo

I was thinking it was a bad idea to make short two charachters but I guess you ran out of symbols eh :)


Hotcakes(Posted 2005) [#8]
So I'm the only one that actually likes MrCredo's idea? ;]


Kanati(Posted 2005) [#9]
yes. :)


MrCredo(Posted 2005) [#10]
hey people, this was a joke :-)

personaly, i don't like this shortcuts, and i think here should exist another shortcut for @@