www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/29/20:47:38

Date: 29 Nov 1997 17:27:00 +0100
From: mjs AT prg DOT hannover DOT sgh-net DOT de (Mark Junker)
Newsgroups: comp.os.msdos.djgpp
Message-ID: <6imbfQY88gB@prg.hannover.sgh-net.de>
References: <34803024 DOT 7A6F AT cam DOT org>
Subject: Re: weird error: pointers to functions in structs
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Prev. Author: tudor AT cam DOT org
      Date:   29.11.97
      Subject:"weird error: pointers to functions in structs"

> but[number].(*action)(); I get a parse error before "("
You can try:

but[number].action();   // should be automatically correctly recognized by
                        // compiler
.. or ..

(*but[number].action)();// not sure about this expression but it should
                        // work (IMHO)

Regards, MJS
Use it: _PB3.2 & PREP_ / _ASM & PREASM_ / _NASM & FLINK_

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019