Hi Damian - > If you mean being able to refer to an external > C variable which is a struct then yes.
To be clear, the usual way to allow a C struct to work in Chapel code is `extern record`, which we are not talking about deprecating: https://chapel-lang.org/docs/technotes/extern.html#declaring-external-c-structs The feature that Brad is talking about deprecating is `extern class` which is arguably better represented as a `c_ptr(someExternRecord)` (i.e. explicitly as a pointer to a struct): https://chapel-lang.org/docs/technotes/extern.html#referring-to-external-c-pointer-to-structs-extern-classes Cheers, -michael Brad, On Tue, 19 Jun 2018, Brad Chamberlain wrote: > It's been proposed that we deprecate our current concept of "extern > classes" in the next release. This is a quick poll to see whether > anyone has crucial code that makes use of them today. If you do, please > let me know. If you mean being able to refer to an external C variable which is a struct then yes. I am sure there has to be a way around this and I always guilty that I need it. But to date, I have not yet figured it out, or come up with a simple low level idea for Chapel so I can avoid it. Regards - Damian Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
