Newsgroups: comp.object.logic
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!news.nic.surfnet.nl!hhinsi!news
From: Haime <v921056>
Subject: Help with O2 programming - Germaine Haime
Content-Type: text/plain; charset=us-ascii
Message-ID: <DJJ3HE.8wK@si.hhs.nl>
Sender: news@si.hhs.nl
Content-Transfer-Encoding: 7bit
Organization: Sector Informatica, Haagse HogeSchool, the NetherLands
Mime-Version: 1.0
Date: Wed, 13 Dec 1995 14:12:49 GMT
X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4m)
X-Url: news:comp.object.logic
Lines: 52

I'm having some problems with a piece of O2 programming and no one in my direct 
environment seems to be able to help me.
If you can help me, I beg you to.
These are my problems:

1)
In a specific object class I'd like to disable the standard method "edit", to
make an edit-method of my own. In my programming code i've included the
following line:

transaction body test in application main
{
   o2 Document d = new Document;
   o2 Paragraaf p = new Paragraaf;

   d->disable_method ("edit");
   p->disable_method ("edit");
};

The following error message is given:

Ik_unknown_method_disable_method


2)
What is wrong with the following piece of code?


method body controle in class Document
{
	o2 string str;       /* space for sprintf */
	
	sprintf(str,
	   "De parnr. %d in doc. %s already exists al\n,
	   and has therefore been removed.",
	   self->parnr, self->doc_nm);

/* underneath seems to be the actual troublemaker */
	Dialoguer->message(str, "");  
};


3)
How do I implement a "n:m-association"?


My e-mail address is v921056@si.hhs.nl

Many thanks,

Germaine

