Conversation
Notices
-
THE pleroma-tan enjoyer (kirby@waifuism.life)'s status on Monday, 26-Jun-2023 15:58:02 JST THE pleroma-tan enjoyer "Access objects in structs using a ."
I thought you did it using the arrow- Machismo repeated this.
-
Machismo (zerglingman@freespeechextremist.com)'s status on Monday, 26-Jun-2023 15:58:32 JST Machismo @kirby IIRC a->b is equivalent to *a.b -
iced quinnsmas :blobcatsanta: (icedquinn@blob.cat)'s status on Monday, 26-Jun-2023 15:58:42 JST iced quinnsmas :blobcatsanta: @kirby only if its a pointer to a struct, in c/c++ -
THE pleroma-tan enjoyer (kirby@waifuism.life)'s status on Monday, 26-Jun-2023 16:00:46 JST THE pleroma-tan enjoyer @Zerglingman oh so I can do it with pointers as well?
struct* myType h;
h->a;
that would work?Machismo likes this.