Class MayHoldUserObject

java.lang.Object
org.ek9lang.compiler.support.MayHoldUserObject
All Implemented Interfaces:
Predicate<ISymbol>

public final class MayHoldUserObject extends Object implements Predicate<ISymbol>
THE test of whether a value of a type can reach an object the PROGRAM defines (D7', Steve 2026-11-12): the type is open-ended (IsOpenEndedType: a bare T, Any, a function, a trait, an open or abstract type), or is a type the program defines (not core), or is a parameterisation one of whose arguments can, or has a property whose type can, or a super (other than Any) that can. A closed concrete core type - String, Stdout, JSON, List of String - cannot. Asked of an un-annotated extern's RESULT type by support/retention/MayAlias: a result that can reach a user object and whose member declares no retention MAY alias its receiver or an argument (fail closed); one that cannot is nothing the escape facts need to follow. Hold one.
  • Constructor Details

    • MayHoldUserObject

      public MayHoldUserObject()
  • Method Details