Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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> 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
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top