You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document how to create an undefined reference (Ref) and detect that using isassigned (#35723)
* Document how to create a Ref to undef and how to detect is a Ref refers
to undef
* Document Ref{T}() behavior when T is a primitve bit type.
* Change primitive to bitstype, isdefined to isassigned, doc isassigned
* Document isassigned(::RefValue). Remove no invalid Ref language.
* Remove duplicate isassigned docs for arrays in essentials.jl
* Refer to undefined reference rather than undef for isassigned
* isassigned reference docs, fix line returns in doc
* Fix line returns for isassigned(RefValue) doc
* Add backticks to quote code as suggested by @rfourquet
Co-authored-by: Rafael Fourquet <fourquet.rafael@gmail.com>
* Change `undef` to undefined, fix examples
Change `undef` to undefined reference
Add comments to examples
Remove C_NULL example due to confusion
List normal `Ref` usage first
* Create a markdown header for examples
* Clarify that error when attempting to deference
Clarify that the act of dereferencing causes the error to be thrown. @rfourquet
* Remove undefined Ref bitstype comparison
Comparison of an undefined reference value bitstype to zero may be true. Insert a semicolon just to demonstrate usage but not the result.
Co-authored-by: Rafael Fourquet <fourquet.rafael@gmail.com>
0 commit comments