Generic (void *)int

Jorn Vernee jbvernee at xs4all.nl
Mon Feb 18 12:36:51 UTC 2019


That would work; I guess the main question I'm asking is if pointer 
literals should always belong to the global scope, or if there needs to 
be some more fine-grained Scope for them, e.g. by passing one as an 
argument:

     static Pointer<?> literal(Scope theScope, long value) {
         ...
     }

Jorn

Maurizio Cimadamore schreef op 2019-02-18 13:31:
> On 18/02/2019 11:38, Jorn Vernee wrote:
>> One of the questions is; to what Scope do these literals belong? Do we 
>> allow users to pass in a Scope? I think with the assumption that 
>> "pointer literals are just special values", it makes sense to have 
>> their Scope just be null, since no actual memory is managed.
> 
> global scope?
> 
> Maurizio


More information about the panama-dev mailing list