Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 25, 2024
1 parent e045ef6 commit f94306c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
13 changes: 0 additions & 13 deletions paper/code/mutability.jl

This file was deleted.

12 changes: 11 additions & 1 deletion paper/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,17 @@ \subsection{Mutability fallback}
returns \lstinline|IsMutable()| if \lstinline|T| is in the first category
and \lstinline|IsNotMutable()| if \lstinline|T| is in the second category.
Then we have the following fallback for \lstinline|mutability|:
\jlinputlisting{code/mutability.jl}
\begin{jllisting}
mutability(::Type) = IsNotMutable()
function mutability(T::Type, op::Function, args::Type...)
if mutability(T) isa IsMutable &&
T == promote_operation(op, args...)
return IsMutable()
else
return IsNotMutable()
end
end
\end{jllisting}

\subsection{Minimal interface}
In summary, for a type \lstinline|Foo| to implement the interface,
Expand Down

0 comments on commit f94306c

Please sign in to comment.