Should arguments to PTS manipulation functions be const qualified?

Issue #113 duplicate
Former user created an issue

Originally reported on Google Code with ID 113

The upc_threadof(), upc_phaseof(), and upc_addrfield() functions don't actually access
the data pointed-to by the argument, they merely inspect the pointer-to-shared itself.
 Therefore, shouldn't they take 'shared const void *' as opposed to 'shared void *'?

Reported by sdvormwa@cray.com on 2013-06-04 14:26:27

Comments (1)

  1. Former user Account Deleted
    This is only a small part of the larger problem detailed in issue 19 and issue 20 (both
    deferred to 1.4), namely the functions also require a cast when passing an explicitly
    strict or relaxed qualified PTS. The const qualifier is discussed in this comment:
    http://code.google.com/p/upc-specification/issues/detail?id=19#c12 and whatever resolution
    is made for issue 19 should cover this as well.
    

    Reported by danbonachea on 2013-08-03 04:32:56 - Status changed: Duplicate - Merged into: #19

  2. Log in to comment