[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Meaning and purpose of IPointerType.isConst()?
|
It looks like it means 'int * const'.
Is there a reason to prefer this reprenstation for 'int * const' over an IQualifierType wrapping an IPointerType?
Thanks,
Nate
________________________________
> Date: Fri, 27 Feb 2015 11:53:58 -0800
> From: eclipse.sprigogin@xxxxxxxxx
> To: cdt-dev@xxxxxxxxxxx
> Subject: Re: [cdt-dev] Meaning and purpose of IPointerType.isConst()?
>
> It would be nice to answer this question experimentally and to add
> missing information to IPointerType JavaDoc.
>
> -sergey
>
> On Fri, Feb 27, 2015 at 11:48 AM, Nathan Ridge
> <zeratul976@xxxxxxxxxxx<mailto:zeratul976@xxxxxxxxxxx>> wrote:
> What is the meaning of IPointerType.isConst()?
>
> If I have an IPointerType with getType() = int and isConst() = true, do
> I have a 'const int *' or a 'int * const' ?
>
> In either case, does IPointerType.isConst() not duplicate the
> functionality of IQualifierType (as 'const int*' can be represented as
> an IPointerType whose getType() is an IQualifierType whose isConst() is
> true and whose getType() is int, and 'int * const' can be represneted
> as an IQualifierType whose isConst() is true and whose getType() is an
> IPointerType whose getType() is int)?
>
> Thanks,
> Nate
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx<mailto:cdt-dev@xxxxxxxxxxx>
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________ cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx To change your delivery options, retrieve your
> password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/cdt-dev