🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by m.terribile Thu, 20 Feb 1986 18:12
cfront working too hard?
#20
Author: m.terribile
Date: Thu, 20 Feb 1986 18:12
29 lines
1433 bytes
In compiling a base class b with virtual function v, I declare

	virtual int
	b::v( b* bp )
	{
		return 0;
	}

where the intent is that derived classes may have good use for bp, but
the base class represents a null case.

cfront naturally warns about the unused argument.

	Is this excessive in the case of a virtual function?  Is there
a syntax (such as omitting ``bp'') that will allow me to say ``I know
that an argument is passed, but I don't need it'' ?  With virtuals, this
might be a common situation.

	As usual, if this could better have been handled by private mail,
sill someone please let me know?

						Mark T.
-- 

	from Mole End			Mark Terribile
		(scrape .. dig )	mtx5b!mat
					(Please mail to mtx5b!mat, NOT mtx5a!
						mat, or to mtx5a!mtx5b!mat)
    ,..      .,,       ,,,   ..,***_*.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads