• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            聚星亭

            吾笨笨且懶散兮 急須改之而奮進(jìn)
            posts - 74, comments - 166, trackbacks - 0, articles - 0
              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

             

                   AngelScript 是當(dāng)作一個(gè)引擎而構(gòu)建的,當(dāng)應(yīng)用程序需要注冊(cè)函數(shù)、屬性(properties)和任意數(shù)據(jù)類(lèi)型的時(shí)候,這個(gè)腳本可能會(huì)派上用場(chǎng)(原文: AngelScript is structured around an engine where the application should register the functions, properties, and even types, that the scripts will be able to use.)。本腳本庫(kù)依賴(lài)于應(yīng)用程序,它會(huì)被編譯到應(yīng)用程序的一個(gè)或多個(gè)模塊之中(原文: The scripts are then compiled into modules, where the application may have one or more modules, depending on the need of the application.)。應(yīng)用程序也可以通過(guò)各式各樣的接口來(lái)使用configuration集合的每一個(gè)模塊(原文:The application can also expose a different interface to each module through the use of configuration groups)。當(dāng)應(yīng)用程序需要一個(gè)多類(lèi)型的腳本時(shí),例如圖形用戶(hù)界面,人工智能控制等等本腳本庫(kù)就顯得特別有用了(原文: This is especially useful when the application works with multiple types of scripts, e.g. GUI, AI control, etc.)。

             

                   腳本的函數(shù)、全局變量和類(lèi),每個(gè)模塊都有它自己的作用域范圍(原文: Each module has it's own scope of script functions, global variables, and classes)。即使各個(gè)模塊可能組建于同一個(gè)腳本源碼,它們之間通常也不會(huì)共享(原文: These are normally not shared between modules, even though multiple modules may be built from the same source scripts)。不過(guò)模塊可以通過(guò)綁定函數(shù)來(lái)相互配合相互影響(原文: However modules may interact with each others through function binding.)。

             

                   作為一個(gè)腳本,被編譯成 字節(jié)碼 AngelScript同樣也提供了一個(gè)虛擬機(jī)來(lái)作為執(zhí)行這些字節(jié)碼的腳本環(huán)境,AngelScript同樣也提供了一個(gè)虛擬機(jī)來(lái)解析腳本的上下文,來(lái)將腳本編譯成字節(jié)碼并執(zhí)行。(原文:As the scripts are compiled into bytecode AngelScript also provides a virtual machine, also known as a script context, for executing the bytecode)。盡管大多數(shù)應(yīng)用程序可能僅需要一個(gè)腳本環(huán)境,但是應(yīng)用程序可以在同一時(shí)間獲取許多腳本上下文(原文:The application can have any number of script context at the same time, though most applications will probably only need one.)。

             

                   這個(gè)環(huán)境支持可執(zhí)行體的掛起和恢復(fù),因此,這個(gè)應(yīng)用程序可以很容易的執(zhí)行就好像同時(shí)執(zhí)行腳本和普通程序一樣(原文:The contexts support suspending the execution and then resuming it, so the application can easily implement features such as concurrent scripts and co-routines.)。腳本環(huán)境為了獲取運(yùn)行時(shí)信息業(yè)提供了一個(gè)接口,這對(duì)調(diào)試腳本非常有用(原文:The script context also provides an interface for extracting run-time information, useful for debugging scripts.)。

             

                   AngelScript的腳本語(yǔ)言是在眾所周知的C + +語(yǔ)法之上增加像Java, C#D等更現(xiàn)代語(yǔ)言的語(yǔ)法(原文:The script language is based on the well known syntax of C++ and more modern languages such as Java, C#, and D.)。任何人只要了解一些別的語(yǔ)言,或者其他有著類(lèi)似語(yǔ)法的腳本語(yǔ)言,像JavascriptActionScript,再用AngelScript會(huì)有一種一見(jiàn)如故的感覺(jué)(Anyone with some knowledge of those languages, or other script languages with similar syntax, such as Javascript and ActionScript, should feel right at home with AngelScript.)

             

            跟許多的腳本語(yǔ)言相反,AngelScript是一個(gè)強(qiáng)類(lèi)型的語(yǔ)言,它允許更快更穩(wěn)定的執(zhí)行代碼與宿主應(yīng)用程序之間的交互會(huì)減少有類(lèi)型值所需要的運(yùn)行時(shí)間(原文:Contrary to most script languages, AngelScript is a strongly typed language, which permits faster execution of the code and smoother interaction with the host application as there will be less need for runtime evaluation of the true type of values.)。

                    

                   AngelScript的內(nèi)存管理是基于一個(gè)用于檢測(cè)和釋放的循環(huán)引用對(duì)象來(lái)增加垃圾回收的引用計(jì)數(shù)(原文:The memory management in AngelScript is based on reference counting with an incremental garbage collector for detecting and freeing objects with circular references)。這就提供了一個(gè)可控環(huán)境,除非應(yīng)用程序凍結(jié)垃圾回收機(jī)制來(lái)申請(qǐng)內(nèi)存(原文:This provides for a controlled environment without application freezes as the garbage collector steps in to free up memory.)。

             

             

             

                                                                                                                        ---------  besterChen

                                                                                                                     譯于2010226星期五

            Feedback

            # re: AngelScript 實(shí)用手冊(cè)之概述  回復(fù)  更多評(píng)論   

            2010-02-27 00:14 by C/C++源碼論壇 (中國(guó)大學(xué)生軟件開(kāi)發(fā)論壇)
            華為C++面試題2010年鄭州大學(xué)(2010-2-24全套面試題)

            轉(zhuǎn)載于 C/C++源碼論壇 (中國(guó)大學(xué)生軟件開(kāi)發(fā)論壇) 我們專(zhuān)注C/C++

            http://www.cssdn.net/thread-8591-1-1.html">http://www.cssdn.net/thread-8591-1-1.html">http://www.cssdn.net/thread-8591-1-1.html

            華為C++面試題2010年鄭州大學(xué)(2010-2-24全套面試題)
            筆試地點(diǎn) 中原地區(qū) 鄭州大學(xué)
            1. 編寫(xiě)strcat函數(shù)(5分)
            已知strcat函數(shù)的原型是char *strcat (char *strDest, const char *strSrc);
            其中strDest 是目的字符串,strSrc 是源字符串。
            (1)不調(diào)用C++/C 的字符串庫(kù)函數(shù),請(qǐng)編寫(xiě)函數(shù) strcat
            (2)strcat能把strSrc 的內(nèi)容連接到strDest,為什么還要char * 類(lèi)型的返回值?
            2.使用線(xiàn)程是如何防止出現(xiàn)大的波峰(5)
            3.隊(duì)列和棧有什么區(qū)別?(9)
            (請(qǐng)至少說(shuō)出三點(diǎn))
            4、請(qǐng)找出下面代碼中的所以錯(cuò)誤(5)
            說(shuō)明:以下代碼是把一個(gè)字符串倒序,如“abcd”倒序后變?yōu)椤癲cba”

            1、#include"string.h"
            2、main()
            3、{
            4、 char*src="hello,world";
            5、 char* dest=NULL;
            6、 int len=strlen(src);
            7、 dest=(char*)malloc(len);
            8、 char* d=dest;
            9、 char* s=src[len];
            10、 while(len--!=0)
            11、 d++=s--;
            12、 printf("%s",dest);
            13、 return 0;
            14、}
            5.C++中為什么用模板類(lèi)。(5)
            (請(qǐng)至少說(shuō)出三點(diǎn))
            ...
            ...
            ...

            嚴(yán)禁用于商業(yè)用途轉(zhuǎn)載 轉(zhuǎn)載請(qǐng)注明出去

            C/C++源碼論壇 (中國(guó)大學(xué)生軟件開(kāi)發(fā)論壇) 我們專(zhuān)注C/C++
            http://www.cssdn.net
            回復(fù) 更多評(píng)論

            # re: [翻譯]AngelScript 實(shí)用手冊(cè)之概述  回復(fù)  更多評(píng)論   

            2010-02-27 11:59 by 凡客優(yōu)惠卷
            很好1234566
            久久久久波多野结衣高潮| 一本久久久久久久| 日韩美女18网站久久精品| 天天做夜夜做久久做狠狠| 精品久久久无码人妻中文字幕| 男女久久久国产一区二区三区| 999久久久无码国产精品| 久久精品国产精品亚洲| 国产激情久久久久久熟女老人| 狠狠久久亚洲欧美专区| 武侠古典久久婷婷狼人伊人| 国产成人久久AV免费| 亚洲乱码日产精品a级毛片久久 | 午夜精品久久影院蜜桃| 亚洲精品乱码久久久久久蜜桃不卡 | 国产亚洲精午夜久久久久久| 18禁黄久久久AAA片| 久久国产乱子精品免费女| 久久精品国产乱子伦| 久久高清一级毛片| 久久精品国产精品亚洲精品| 2021国产精品午夜久久| 久久se精品一区二区影院| 精品午夜久久福利大片| 亚洲AV无码久久精品成人| 亚洲国产精品无码久久九九| 国产精品va久久久久久久| 国产精品视频久久久| 99久久婷婷国产综合亚洲| 亚洲AV无码成人网站久久精品大| 思思久久99热只有频精品66| 国产一区二区三精品久久久无广告 | 久久精品一本到99热免费| 人人狠狠综合久久亚洲婷婷| 韩国三级大全久久网站| 97久久天天综合色天天综合色hd| 精品免费久久久久久久| 成人免费网站久久久| 久久这里只精品国产99热| 国产精品免费久久久久影院| 日本久久久精品中文字幕|