PureBASIC Procedures : Procedure() and new one Function()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Hungarian notation???

Post by Fangbeast »

GedB wrote: Weird, I speak fluent Hungarian and i've never heard of that.

"This causes so much confusion that they had to invent Hungarian Notation to tell you its really a long pointer to a string (lpsz). Then their listings looks like Hungarian (hence the name)"

If you are talking about the "sz" part of the lpsz (and I don't know if you are), it's not notation, it's our spelling so that reference confused me.

sz = s in English, it's our equivalent of 'phonetic' spelling :):)

ROFL (English is convoluted enough without making it more complicated, my cheeks ache from laughing)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Hungarian notation was named so in honor of the legendary Micro$oft programmer Charles Simonyi. Very simply, the variable name begins with a lowercase letter or letters that denotes the data type of the variable.

Code: Select all

c          char or WCHAR or TCHAR
by         BYTE (unsigned char)
n          short
i          int
x, y       int used as x-coordinate or y-coordinate
cx, cy     int used as x or y lenght; c stands for "count"
b or f     BOOL (int); f stands for "flag"
w          WORD (unsigned short)
l          LONG (long)
dw         DWORD (unsigned long)
fn         function
s          string
sz         string terminated by 0 character
h          handle
p          pointer
Used extensively in Win32 API :D
http://www.gregleg.com/oldHome/hungarian.html
--Kale

Image
Post Reply