Re: Object Oriented Compiler Design Problem

"Quinn Tyler Jackson" <qjackson@wave.home.com>
13 Sep 1998 22:24:09 -0400

          From comp.compilers

Related articles
Object Oriented Compiler Design Problem mayurnaik@my-dejanews.com (1998-09-05)
Re: Object Oriented Compiler Design Problem qjackson@wave.home.com (Quinn Tyler Jackson) (1998-09-13)
Re: Object Oriented Compiler Design Problem qjackson@wave.home.com (Quinn Tyler Jackson) (1998-09-13)
Re: Object Oriented Compiler Design Problem dwight@pentasoft.com (1998-09-13)
Object Oriented Compiler Design Problem dboucher@locus.ca (Dominique Boucher) (1998-09-13)
Re: Object Oriented Compiler Design Problem brueni@ipass.net (Dennis Brueni) (1998-09-13)
Re: Object Oriented Compiler Design Problem mikee@cetasoft.cog (1998-09-13)
Re: Object Oriented Compiler Design Problem jucie@uol.com.br (Juciê Dias Andrade) (1998-09-13)
Re: Object Oriented Compiler Design Problem danwang+news@cs.princeton.edu (Daniel C. Wang) (1998-09-18)
| List of all articles for this month |
From: "Quinn Tyler Jackson" <qjackson@wave.home.com>
Newsgroups: comp.compilers
Date: 13 Sep 1998 22:24:09 -0400
Organization: Compilers Central
References: 98-09-019 98-09-027
Keywords: OOP, design

>symbol* add(symbol* a, symbol* b)
>{
> symbol* retval = new variable;
>
> if(a.is_const() && b.is_const())
> {
> retval = new variable;
>
> retval->set_value(a->get_value()+b->get_value());
> }


Oops. Of course, I meant to write:


> if(a.is_const() && b.is_const())


        if(a->is_const() && b->is_const())


--
Quinn Tyler Jackson


email: qjackson@wave.home.com
url: http://www.qtj.net/~quinn/
ftp: qtj.net
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.