On Wed, 2005-05-25 at 17:20 +1000, Erik de Castro Lopo wrote:

> Sorry, I don't think that is an answer. In particular, it does
> not match C++'s scope resolution operator.
> 
> What we need to be able to do is:
> 
>     void bar(int foo)
>     {
>        /* Use foo the function. */
>         x = foo();
> 
>         /* Use foo the integer. */
>         x += foo;
> 
>        /* Use foo the function. */
>         x = foo();
>     }

function names are symbls ::

extern int foo (void);

static void 
bar (int foo)
{
  /* use foo the function */
  int x = foo ();
  /* use foo the function */
  /* (OH shit) */
  int (*y) (void) = foo;
  /* use both ;) */
  x = foo + y ();
}


-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to