I’d like to do something like this
class ['a] stack = object
method create () : 'a = new 'a
end
is that possible?
I’d like to do something like this
class ['a] stack = object
method create () : 'a = new 'a
end
is that possible?
Nope, new
expects a class name. A class is not a type, it is a blueprint for making objects.