REFERENCE TO in an array

janber
2024-10-14
2025-05-21
  • janber - 2024-10-14

    Hi all,
    in the online help it written, that array of reference to data type is not possible.
    Ok...

    but if I create array of struct of reference to - everything works fine - please see the screenshots:


    and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it?

    Thanks a lot,

    Jan.

     
  • avenue68 - 2025-05-21

    That's because the array only contains structures themselves, not references.
    It doesn't matter that what consists of each struectures unless they are not pointers.

     

Log in to post a comment.