What about naming it obj (object), ref (reference) or objref (object
reference)? long int is misleading, because it is not always a long
int. The best next data type in C, which should always fit, is
ptrdiff_t - but that has the dreaded term ptr in its own name again.

The other counter argument is: Why bother changing the name? The ksh93
api for .sh.sig.value is modeled after sigval_t, and that uses
sival_ptr. Renaming it may cause more confusion than necessary.
Closest competitor perl - which does not have a real concept of
pointer either - just uses si_ptr()
[http://sssg1.whoi.edu/swap2/sources/build/lib/perl/5.8.4/bits/siginfo.ph].
I am not good in python, but AFAIK it does not have native pointers
either, and still defines sigval as this:
sigval._fields_ = [
    ('sival_int', c_int),
    ('sival_ptr', c_void_p),
]

Olga

On Wed, Sep 11, 2013 at 11:59 PM, David Korn <[email protected]> wrote:
> cc: [email protected] [email protected] 
> [email protected]
> Subject: Re: Re: [ast-developers] [patch] kill(1) |sigqueue()| fixes+|EAGAIN| 
>  handling etc. ... / was: Re: |sigqueue()| fixes+|EAGAIN| handling etc. ...
> --------
>
> I have added -Q in the next alpha and value is a compound variable
> of in and ptr.  However, I don't like ptr since the shell doesn't
> provide a ptr interface.  I am thinking of changing the
> name to lint or long int.
>
> It will not affect the functionality as far as I know but give
> a better description since -Q passes a long int and -q passes int
> and give an error for overflow.
>
> Any comments?
>
> David Korn
> [email protected]
> _______________________________________________
> ast-developers mailing list
> [email protected]
> http://lists.research.att.com/mailman/listinfo/ast-developers



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to