Hi Hongwei, On Fri, Aug 26, 2016 at 6:38 PM, Kiwamu Okabe <[email protected]> wrote: > Truly, we have no method to avoid both miss cast and NULL pointer??? > Or we can avoid them, if drop mutual struct/record and use > singly-pointer-linked struct/record?
I think the Rust language has a method to avoid both of them: https://github.com/redox-os/redox/blob/1ce61c3833b55d4724f9a920ce13f637d6faca74/kernel/audio/ac97.rs#L26 If so, Rust is more better than ATS to maintain pointer in struct. Of course, Rust doesn't have any dependent types, however I think the language is more safe to maintain memory. Best regards, -- Kiwamu Okabe at METASEPI DESIGN -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAEvX6d%3DbeDKmci_fqyriLkLn_9CaReSqi3298MBOTvb4B5zkWg%40mail.gmail.com.
