<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                >[warning] 定義:結構子類型化 結構子類型化定義了一個在擁有同樣結構的類型之間的隱式的關系。 >[warning] De?nition: Structural Subtyping Structural subtyping de?nes an implicit relation between types that have the same structure. Haxe中的結構自類型化在合一時被許可: * 一個類(第2.3節)帶有一個結構(第2.5節),和 * 一個結構帶有另外一個結構 > Structural sub-typing in Haxe is allowed when unifying > * a class (2.3) with a structure (2.5) and > * a structure with another structure. 后面的例子是Haxe標準庫中Lambda類的一部分: > The following example is part of the Lambda class of the Haxe Standard Library : ~~~ public static function empty<T>(it : Iterable<T>):Bool { return !it.iterator().hasNext(); } ~~~ 空方法檢查一個Iterable是否有一個元素。為了這個目的,沒有必要了解任何的參數類型除了事實上它被認為是一個迭代。這允許調用 空方法使用任何統一Iterable<T>的類型,這應用到Haxe標準庫中的很多類型。 > The empty-method checks if an Iterable has an element. For this purpose, it is not necessary to know anything about the argument type other than the fact that it is considered an iterable. This allows calling the empty-method with any type that uni?es with Iterable<T> which applies to a lot of types in the Haxe Standard Library. 這種類型化可以非常方便,但是大量使用可能影響靜態目標語言的性能,在性能影響(第2.5.4節)部分有介紹。 > This kind of typing can be very convenient but extensive use may be detrimental to performance on static targets, which is detailed in Impact on Performance (Section 2.5.4).
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看