全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Opaque type?

Definition 7.3 University Computer Science — Year 1 · 第 7 章 — Modular Programs, Makefiles and Tests

An opaque type is a type that the interface declares without defining it, such as struct ratio; in a header whose fields appear only in the implementation file. Users can hold and pass pointers to it, but cannot read its fields, create one on the stack, or know its size: everything goes through the module’s functions.

在原文中阅读 →