Discussion:
*pp?
(too old to reply)
T
2022-12-02 04:59:06 UTC
Permalink
Hi All,

By any chance does *ppSessionInfo mean a pointer
to another pointer?

Your in confusion,
-T
R.Wieser
2022-12-02 07:00:29 UTC
Permalink
T,
Post by T
By any chance does *ppSessionInfo mean a pointer
to another pointer?
I ofcourse can't, due to the absense of context, be absolutily sure, but
yes, it nornally does (you're providing a pointer to a pointer-variable the
function/method/procedure can store its pointer to a structure/record/memory
block in). Though I must say I always regarded it as a bad/odd mix of
C{something}-specific language (the "*") and the so-called "Hungarian
notation".

What I mean ? The "*" means pointer. The two "p"-s the name starts with
mean the same. So, I /could/ read it as a pointer to a pointer to a pointer
(three pointers) ... :-|

As I'm not really a C{something} programmer I again can't be fully sure, but
in it I expect(ed) it to be something like "**SessionInfo".

Regards,
Rudy Wieser
T
2022-12-02 07:26:21 UTC
Permalink
Post by R.Wieser
T,
Post by T
By any chance does *ppSessionInfo mean a pointer
to another pointer?
I ofcourse can't, due to the absense of context, be absolutily sure, but
yes, it nornally does (you're providing a pointer to a pointer-variable the
function/method/procedure can store its pointer to a structure/record/memory
block in). Though I must say I always regarded it as a bad/odd mix of
C{something}-specific language (the "*") and the so-called "Hungarian
notation".
What I mean ? The "*" means pointer. The two "p"-s the name starts with
mean the same. So, I /could/ read it as a pointer to a pointer to a pointer
(three pointers) ... :-|
As I'm not really a C{something} programmer I again can't be fully sure, but
in it I expect(ed) it to be something like "**SessionInfo".
Regards,
Rudy Wieser
Oh crap. I just figured out how to handle c pointers
in Raku. Now I have to figure out how to do pointers
to pointers. AAAAA HHHHHH !!!!!

Thank you for the confirmation.
R.Wieser
2022-12-02 08:51:41 UTC
Permalink
T,
Post by T
Oh crap. I just figured out how to handle c pointers
in Raku. Now I have to figure out how to do pointers
to pointers. AAAAA HHHHHH !!!!!
Ain't programming (when you have to figure out everything by yourself) a
nice hobby ? :-D
Post by T
Thank you for the confirmation.
You're welcome.

Regards,
Rudy Wieser

Loading...