Variables

General FreeBASIC programming questions.
Post Reply
albert
Posts: 6000
Joined: Sep 28, 2006 2:41
Location: California, USA

Variables

Post by albert »

@Coders

How about making the vars easier to follow??

Like:

dim as S8
dim as U8

dim as S16
dim as U16

dim as S32
dim as U32

dim as S64
dim as U64

??
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Variables

Post by fxm »

If you prefer, nothing prevents you from setting your own aliases:

Code: Select all

Type S8 As Byte
Type U8 As Ubyte
Type S16 As Short
Type U16 As Ushort
Type S32 As Long
Type U32 As Ulong
Type S64 As Longint
Type U64 As Ulongint
Tourist Trap
Posts: 2958
Joined: Jun 02, 2015 16:24

Re: Variables

Post by Tourist Trap »

I use sometimes this syntax that I find very useful when bits length counts:

Code: Select all

dim variable as integer<bits>
Post Reply