[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sharing variables and inline functions
From: |
Axel von Kamp |
Subject: |
Re: Sharing variables and inline functions |
Date: |
Thu, 04 Mar 1999 15:55:16 +0000 |
>
> > I've also been thinking about how to efficiently gain read access to
> > instance
> > variables without declaring them as @public. My idea (inspired by what
> > C++ does) is that, since in Objective C you can still use functions and gcc
> > supports inline functions (which is not ANSI standard), to use inline
> > functions for access. I have edited the example below to illustrate what I'm
> > talking about
> >
> I don't pretend to understand the details, but doesn't the Swarm CFLAG
> for linux include -fno-inline? And doesn't that block this kind of use?
Well, not being 100% sure myself about this flag, I also use the -Winline flag
which is supposed to turn on warnings when functions that are declared inline
can
not be inlined. Since I don't get any warnings I believe it is working. But I
only
*believe* it :)
What's the motiviation behind using the -fno-inline flag anyway? What could be
bad
about inline functions?
-Axel
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.