variable-alias

    0热度

    2回答

    示例阵列 arr = ["a", "b", "c"] # TODO create an alias for arr[1] as x x = "X" # arr should be ["a", "X", "c"] here 示例散列 hash = { :a => "aaa", :b => "bbb" , :c => "ccc" } # TODO create an alias for h

    6热度

    2回答

    我已阅读文章Surviving the Release Version。 在“别名错误”的条款,它说: 如果你告诉 ,它可以不承担 混淆编译器你可以得到更紧凑的代码.... 我我也读过Aliasing (computing)。 到底什么是可变的别名?我明白这意味着使用指针变量的别名,但如何/为什么它会影响严重,或者换句话说 - 为什么讲它可以假定没有走样,编译器会得到我一个“更紧凑的代码”