≈ the.bay.news

Pointer capture

Ziggit
Pointer capture
What’s the relationship of the result type between capture expression and conditional expression? Will using pointer capture change that behavior? Say T is anyerror!?u32, and expression a has result type T. In a if expression where a is passed as conditional expression: if a has value error.BadValue we need to hold it on the else branch, where the capture expression has result type anyerror; If a has value null, the capture expression optional_value has result type ?u32; If a has value 44, th...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.