Skip to content

Commit

Permalink
Merge pull request #150 from JuliaGizmos/sd/value
Browse files Browse the repository at this point in the history
add fallback for non signals
  • Loading branch information
SimonDanisch committed Aug 2, 2017
2 parents fd9fd21 + 0380312 commit 13f97d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.jl
Expand Up @@ -128,6 +128,7 @@ Base.show(io::IO, n::Signal) = begin
write(io, "$(n.id): \"$(n.name)\" = $(n.value) $(eltype(n)) $active_str")
end

value(n) = n
value(n::Signal) = n.value
value(::Void) = false
eltype{T}(::Signal{T}) = T
Expand Down

0 comments on commit 13f97d1

Please sign in to comment.