跳轉到內容

Ada 程式設計/編譯指示/約定

來自華夏公益教科書,開放的書籍,造福世界

Ada. Time-tested, safe and secure.
Ada. 經久考驗,安全可靠。

Convention 編譯指示 指示編譯器使用外語約定來表示型別或子程式。

支援的外語集取決於編譯器實現。通常支援 CC++COBOLFortran

type My_C_Type is record [...];
-- Ada will represent My_C_Type as a C-style structure.
pragma Convention (C, My_C_Type);

華夏公益教科書

[編輯 | 編輯原始碼]
華夏公益教科書