Nicl has a scope interface in java.nicl.Scope. This interface defines all the operation one would need to interact with the scope.
Having two additional public types HeapScope and NativeScope provides no extra value, other than being able to create the right scope - which we can address with two static factory methods in the Scope interface itself.
Having two additional public types HeapScope and NativeScope provides no extra value, other than being able to create the right scope - which we can address with two static factory methods in the Scope interface itself.