美文网首页
Hard, sound/unsound

Hard, sound/unsound

作者: 98Future | 来源:发表于2017-10-31 14:52 被阅读0次

刚看了一下斯坦福编译原理考卷,最难的题目考点基本上就是在sound/unsound 以及dynamic type, subtype之间

答案还蛮好理解的,但是想出这段代码还挺难的

这里之所以unsound因为

y declare 为A type,但是在runtime的时候,实际上是一个constant A type. 然后y.mutate()的话实际上就是在mutate constantA. 因为constant是不能被mutate的,所以unsound

相关文章

  • Hard, sound/unsound

    刚看了一下斯坦福编译原理考卷,最难的题目考点基本上就是在sound/unsound 以及dynamic type,...

  • 2018-01-25

    Democracy is mathematically unsound.

  • 1.23三峡广场GRE全程班 2.3第11 节课笔记大纲

    Text Completion discredited:a. 使不信任,驳斥 unsound:a.不健康的,不健全...

  • Chamber 1 Poetry

    Listening I am listening for a sound beyond sound that st...

  • 笔记18 Success Secret 18 Take exc

    The key to happiness is a sound mind in a sound body. —TH...

  • The night caller

    At night,a sound woke Peter up.It was a hooting sound.He ...

  • Sound

    Sit still for a moment, and really listen . What can you ...

  • SOUND

    sound专题 phonsonton phon词根含义:voice, sound;助记词:phone:phon+e...

  • Sound

    01 春节,周晗在热闹的客厅带着耳机上英语视频课,边看边做着笔记。学完一课后,周晗还在写着笔记,还没来得及取下耳机...

  • Sound

    静谧的午后 听 沙沙的写字声 滴滴答答的钟声 绷紧的心跳声 一切的静好却又如何平息不了 你的心声 Slient a...

网友评论

      本文标题:Hard, sound/unsound

      本文链接:https://www.haomeiwen.com/subject/gpsbpxtx.html