<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Is there a way in Modula-3 to declare that a type exists, and there are <*external*> instances of it, without "fully" declaring it, so that no Modula-3 can instantiate it?<BR>
<BR>
I have done this for sigset_t and sem_t, but they could erroneously be instantiated by Modula-3 and I'd like to remove that ability to mess up so easily.<BR>
<BR>
(* This type is not declared correctly. It is only instantiated in C code. *)<BR> sigset_t = RECORD END;<BR><BR>
(* This type is not declared correctly. It is only instantiated in C code. *)<BR> sem_t = RECORD END;<BR><BR>
In C I believe you can do this, like:<BR>
typedef struct foo foo_t; <BR>
extern foo_t foo; <BR>
<BR>
void UseFoo(foo_t*); <BR>
foo_t* GetFoo(void); <BR>
<BR>
Thanks,<BR>
- Jay<BR><BR><BR><BR></body>
</html>