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
Functor abstract types
General Usage
question
,
type
,
functors
11
3572
November 7, 2017
How to enforce shared behavior for subtype constructors of abstract type
General Usage
4
600
January 23, 2021
Automating a constructor for all subtypes
General Usage
4
396
November 18, 2019
Defining function calls on an object
Offtopic
3
870
December 11, 2016
Get generic constructor of parametric type
New to Julia
question
,
parametric-types
,
constructors
8
925
August 8, 2021