Julia Programming Language
Fallback Constructor for All Subtypes
General Usage
werpers
December 22, 2022, 4:59pm
2
Perhaps this is what you want:
function (T::Type{<:AbstractThing})() T("blah") end
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
How to enforce shared behavior for subtype constructors of abstract type
General Usage
4
606
January 23, 2021
Functor abstract types
General Usage
question
,
type
,
functors
11
3603
November 7, 2017
Get generic constructor of parametric type
New to Julia
question
,
parametric-types
,
constructors
8
941
August 8, 2021
Automatically generate default instances for all concrete subtypes of a type
New to Julia
type
6
141
May 21, 2025
Automating a constructor for all subtypes
General Usage
4
401
November 18, 2019