Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

资源类型实现 #19

Open
FrankHB opened this issue Apr 17, 2020 · 1 comment
Open

资源类型实现 #19

FrankHB opened this issue Apr 17, 2020 · 1 comment

Comments

@FrankHB
Copy link

FrankHB commented Apr 17, 2020

资源类型应直接使用类类型对象的状态,排除资源对象的非法状态,以减小实现的复杂度。以 IMAGE 为例,初始化资源应使用 IMAGE 的构造函数;创建 DC 失败应抛出异常。

(依赖 #18 。)

@wysaid
Copy link
Owner

wysaid commented Apr 19, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants