• bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 days ago

    Yes, you can do crazy shit if you try hard enough, but every reasonable programmer would access foo->child->b als foo->child->b and not via that crazy LISPy expression.

    By question was: Why would you have a pointer to a memory address that itself only holds a pointer somewhere else?

    So far the only reasonable explanation is from @Victoria@lemmy.blahaj.zone:

    • arrays of function pointers
    • pass by reference of a pointer