Is Scala's `AnyVal`s are stack allocated values? -
I want to know, Scala AnyVal and its subclass may be [c] Or Java primitives]? And can we create an optimized stack allocated variable like Stella on Stella?
AnyVal code> allocated stacks to subclasses, where possible.
Any and
exceptions are exceptions with classes created by a new user, which extends
AnyVal at 2.10.0 . AnyVal will be stored on a heap ... unless you have
@specialized .
Comments
Post a Comment