OCaml
Create a generic (unknown) instance
Learning
ivg
June 13, 2018, 1:47pm
2
Nope,
new
expects a class name. A class is not a type, it is a blueprint for making objects.
show post in topic
Related topics
Topic
Replies
Views
Activity
Can I write constraints that refer to generic types only?
Learning
1
596
November 30, 2018
Converting Module stack for a list into an array, possible?
Learning
1
976
July 24, 2018
What's the difference between an object and a class, as they look very similar
Learning
2
652
May 24, 2022
To create or not to create a new type
Learning
24
1899
June 10, 2021
Pass module to class
Learning
1
108
October 4, 2024