Re: strange behaviour
From: AlanGLLoyd (alanglloyd_at_aol.com)
Date: 10/26/03
- Next message: J French: "Re: strange behaviour"
- Previous message: KLinZ: "Re: Detecting cursor in form's title bar?"
- In reply to: Nicolai Hansen: "Re: strange behaviour"
- Next in thread: AlanGLLoyd: "Re: strange behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Oct 2003 11:46:12 GMT
In article <3f9a58ce$0$27387$edfadb0f@dread16.news.tele.dk>, "Nicolai Hansen"
<nic@aub.dk> writes:
>PChar <---- Type, nothing wrong with calling a non-pointer PBlah, this is
>not at all clear that its a pointer
>
In general "P" is a prefix for a pointer _type_ (just as "T" is for most other
types), carelessly many people use it as a prefix to a pointer _variable_. IMO
a pointer _variable_ should always be prefixed with "Ptr", particularly when
one is dealing with both values and a pointer to such values.
OTOH standard API C-type variables appear to always use "p" as a prefix as part
of the "hungarian" naming convention (which in general is unnecessary in a
strongly typed language such as Delphi).
Conventions in programming (as in social communication) are to help you
understand, needlessly and perversely breaking them is unhelpful and usually
arises during immaturity or some basic incompatibility.
Alan Lloyd
alanglloyd@aol.com
- Next message: J French: "Re: strange behaviour"
- Previous message: KLinZ: "Re: Detecting cursor in form's title bar?"
- In reply to: Nicolai Hansen: "Re: strange behaviour"
- Next in thread: AlanGLLoyd: "Re: strange behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|