Comment by πŸ™ norayr

Re: "Opaque Types in Modula-2"

In: s/pascal

dsar, who is an expert in m2 said about your post:

By the way, that code shouldn't compile, you can't access members of an opaque type

πŸ™ norayr [mod]

2024-12-30 Β· 1 year ago

3 Later Comments ↓

πŸ‘½ TKurtBond [OP] Β· 2024-12-31 at 22:46:

And that’s what I thought, too. Maybe a bug in GNU Modula-2?

πŸ™ norayr [mod] Β· 2025-01-06 at 01:14:

it's possible. if you write in gm2 mailing list, gaius will respond.

πŸ‘½ TKurtBond [OP] Β· 2025-01-15 at 20:32:

Emailed gm2 mailing list.

β€” Error with Opaque types in GNU Modula-2?

Original Post

πŸŒ’ s/pascal

πŸ‘½ TKurtBond:

Opaque Types in Modula-2 β€” My knowledge of Modula-2 is limited to having read Programming in Modula-2 and having written a few toy programs. I'm a little confused about opaque types in Modula-2. They are mentioned in passing in Programming in Modula-2, 4E, Chapter 24, "Definition and Implementation Parts", on page 83. I thought that to make an opaque type, you declared a type in the definition module as [preformatted] and then in the implementation module you finish that declaration as [...

πŸ’¬ 4 comments Β· 1 like Β· 2024-12-24 Β· 1 year ago