Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Optionalを使って()
- {
- ubyte[] buf;
- if (Optional!size_t r = read(buf))
- {
- if (r == 0)
- {
- // EAGAIN
- }
- else
- {
- // 通常コース
- }
- }
- else
- {
- // EOF
- }
- }
- void あるいは配列のnullを使って()
- {
- ubyte[] buf;
- if (ubyte[] r = read(buf))
- {
- if (r == 0)
- {
- // EAGAIN
- }
- else
- {
- // 通常コース
- }
- }
- else
- {
- // EOF
- }
- }
Add Comment
Please, Sign In to add comment