Re: Concerns about deprecating external classes?
On Sun, 24 Jun 2018, Michael Ferguson wrote: 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: Lost in translation when the email crossed the Pacific Ocean. 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): In that case, ignore my email. Iit does not affect me. Go for 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 Chapel-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/chapel-users
Re: Concerns about deprecating external classes?
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 Chapel-users@lists.sourceforge.net 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 Chapel-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/chapel-users
Re: Concerns about deprecating external classes?
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 Chapel-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/chapel-users