This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Null pointer check elimination


Per Bothner <per@bothner.com> writes:

| A "function-never-returns-null" attribute doesn't seem like
| the right mechanism.  Instead, there should be a "never-null"
| attribute on pointer types.  A "function-never-returns-null" is
| just a function whose return-type has the "never-null" attribute.

We already have such mechanism: a reference type -- which morally is
implemented as a pointer type.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]