@@ -85,7 +85,7 @@ $(TYPEDEF)
8585Represents a sample operator. A discrete-time signal is created by sampling a continuous-time signal.
8686
8787# Constructors
88- `Sample(clock::Union{TimeDomain, InferredTimeDomain} = InferredDiscrete)`
88+ `Sample(clock::Union{TimeDomain, InferredTimeDomain} = InferredDiscrete() )`
8989`Sample(dt::Real)`
9090
9191`Sample(x::Num)`, with a single argument, is shorthand for `Sample()(x)`.
@@ -106,7 +106,7 @@ julia> Δ = Sample(0.01)
106106"""
107107struct Sample <: Operator
108108 clock:: Any
109- Sample (clock:: Union{TimeDomain, InferredTimeDomain} = InferredDiscrete) = new (clock)
109+ Sample (clock:: Union{TimeDomain, InferredTimeDomain} = InferredDiscrete () ) = new (clock)
110110end
111111
112112function Sample (arg:: Real )
@@ -190,7 +190,7 @@ struct ShiftIndex
190190 clock:: Union{InferredTimeDomain, TimeDomain, IntegerSequence}
191191 steps:: Int
192192 function ShiftIndex (
193- clock:: Union{TimeDomain, InferredTimeDomain, IntegerSequence} = Inferred, steps:: Int = 0 )
193+ clock:: Union{TimeDomain, InferredTimeDomain, IntegerSequence} = Inferred () , steps:: Int = 0 )
194194 new (clock, steps)
195195 end
196196 ShiftIndex (dt:: Real , steps:: Int = 0 ) = new (Clock (dt), steps)
@@ -232,7 +232,7 @@ function input_timedomain(s::Shift, arg = nothing)
232232 if has_time_domain (arg)
233233 return get_time_domain (arg)
234234 end
235- InferredDiscrete
235+ InferredDiscrete ()
236236end
237237
238238"""
@@ -244,7 +244,7 @@ function output_timedomain(s::Shift, arg = nothing)
244244 if has_time_domain (t, arg)
245245 return get_time_domain (t, arg)
246246 end
247- InferredDiscrete
247+ InferredDiscrete ()
248248end
249249
250250input_timedomain (:: Sample , _ = nothing ) = Continuous ()
@@ -254,7 +254,7 @@ function input_timedomain(h::Hold, arg = nothing)
254254 if has_time_domain (arg)
255255 return get_time_domain (arg)
256256 end
257- InferredDiscrete # the Hold accepts any discrete
257+ InferredDiscrete () # the Hold accepts any discrete
258258end
259259output_timedomain (:: Hold , _ = nothing ) = Continuous ()
260260
0 commit comments