delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/08/19:46:30

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro-GUI-Problem
Date: Sun, 08 Mar 1998 16:26:46 -0800
Organization: Alcyone Systems
Lines: 19
Message-ID: <35033746.2866F195@alcyone.com>
References: <Pine DOT NXT DOT 3 DOT 96 DOT 980308004705 DOT 14716B-100000 AT neelix DOT iiic DOT ethz DOT ch>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andreas 'LionKing' Tscharner wrote:

> The compiler says "Parse error before '{'". What's the problem? How do
> I
> fix it?

The problem is that this initialization notation only works in an
initialization (e.g., at the same time you're declaring the variable).

You should either do a memberwise assignment, or do this work in a
constructor.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
        "I've got the fever for the / flavor of a cracker"
                                   / Ice Cube

- Raw text -


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