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

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -