Page 2 of 2 <12
Topic Options
#94339 - 2002-10-17 05:40 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
Jens,

I agree, 'g' and 'a', should always come before the other data type prefixes. Furthermore, in the event of a global array is should be represented as 'ga' and not 'ag'.

Shawn,

You have a raised a good point with regard to 'n' for count. Should we also have 'i' for index (as in Arrays). Please note that 'i' is not allocated to 'integer' as this is covered by 'l' for long integer.

Finally, imho all global array data types should be explicity declared e.g. ga is insufficient, it should be 'gab', 'gac', 'gaf', 'gal' and 'gas' [Wink]

Rod.

Top
#94340 - 2002-10-17 06:10 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, should the types be in capital and their prefix in minor.
as l may look like i.

so it would be like, gaV or aB or gS ?
_________________________
!

download KiXnet

Top
#94341 - 2002-10-17 06:13 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
All prefixes should be lowercase and the first uppercase caracter denotes the start of the var name.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#94342 - 2002-10-21 09:24 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
OK, so unless anyone has any major objections, I would like to propose that the KiXtart/KiXforms Hungarian Notation convention available from the KiXforms site be considered final. As always, any standard is subject to revision and modification over time, so if we do wish to add n, i, e, v and others then let's hear the case for their inclusion. If you are not happy with this proposal, then please make your voice heard.

Thanks,

Rod.

Top
#94343 - 2002-10-21 09:29 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Rod:

Please post this in the FAQ Section as recommended syntax.
_________________________
There are two types of vessels, submarines and targets.

Top
#94344 - 2002-10-22 11:20 AM Re: RFC - Hungarian Notation for KiXtart & KiXforms
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
Good idea, however, just I was about to post the HN convention to the FAQ Forum, I spotted my deliberate mistake [Embarrassed] and therefore would like to make one small change. I have proposed using 'f' for 32 bit floating point numbers. Well, according to the KiXtart manual ...

quote:
The current implementation of KiXtart uses three types of variants: long integers, doubles (8-byte floating point numbers) and strings.
... oops, therefore we should be using 'd' as in 'double' for 64 bit floating point numbers. As this is clearly an error on my behalf (although nobody else spotted it [Wink] ), I hope that nobody has issue with the correction proposed.

Rod.

Top
#94345 - 2002-10-22 03:31 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
That would avoid the confusion of 'f' for 'float' and 'fn' for 'function'.

BTW, you cannot post to FAQ, but if you conspire with a forum moderator, you could post in that forum and have the moderator move the topic. Once it's in FAQ, the topic will be effectivly (by nature of permissions) closed.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#94346 - 2002-10-22 03:58 PM Re: RFC - Hungarian Notation for KiXtart & KiXforms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep.
that's the way.
do a clean topic.
then do a reply that says no replies, they will be removed.
after that, report the post (that horn at the bottom of every post) to moderators and say it needs a move, and your request will be made.
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1147 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.055 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org