Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2185
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-Id | <1532095.qVoOGUtdWV@PointedEars.de> |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <php@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Wed, 15 Jun 2011 14:21:40 +0200 |
| User-Agent | KNode/4.4.7 |
| Content-Transfer-Encoding | 8Bit |
| Subject | Re: An overloading question |
| Newsgroups | comp.lang.php |
| References | <it83e6$u4e$1@dont-email.me> <4df7a92f$0$12468$bed64819@gradwell.net> <it8n87$7rj$1@dont-email.me> <it8ps7$su3$1@dont-email.me> <it8rmh$6is$1@dont-email.me> <it8vca$nt9$2@dont-email.me> <it93k1$dkn$1@dont-email.me> |
| Followup-To | comp.lang.php |
| MIME-Version | 1.0 |
| Lines | 35 |
| NNTP-Posting-Date | 15 Jun 2011 14:21:47 CEST |
| NNTP-Posting-Host | f0f8fe46.newsspool4.arcor-online.net |
| X-Trace | DXC=kdXFV\AH5_c]l@YUW5NBkn4IUK<Cl32<a4Fo<]lROoRa8kF<OcfhCOk;EEY`15JXAkDZm8W4\YJNlm`dM^Igo6:gRJba@b2d95cAJMYP`JMPTc |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:2185 |
Followups directed to: comp.lang.php
Show key headers only | View raw
sheldonlg wrote:
> On 6/14/2011 8:45 PM, Jerry Stuckle wrote:
>> Id you created it properly, then the constructor in B should be calling
>> b::y().
>>
>> I still suggest you have a mistake in your code.
>
> No, both constructors are there but are empty.
>
> […] I […] copied the entire files into a test area […]. I then eliminated
> all methods that were not called, eliminated all includes that were no
> longer needed in the classes, and modified the important routines to only
> do the printing and the one calling routine in the class to only call the
> prescribed method […]. So, besides the constructors (which were empty)
> the base class had two methods and the overload class had one (with the
> name as the final method invoked in the base class). The only typing I
> did was putting print statements in the final invoked methods to identify
> which one was doing the output.
>
> […] what happened was that the output was from the overloaded method, not
> the base method. […]
Talk is cheap. Show me the code.
-- Linus Torvalds (2000-08-25)
<http://www.catb.org/~esr/faqs/smart-questions.html#beprecise> ff.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
An overloading question sheldonlg <sheldonlg@thevillages.net> - 2011-06-14 12:49 -0400
Re: An overloading question Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-06-14 18:32 +0000
Re: An overloading question sheldonlg <sheldonlg@thevillages.net> - 2011-06-14 18:27 -0400
Re: An overloading question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-14 19:12 -0400
Re: An overloading question sheldonlg <sheldonlg@thevillages.net> - 2011-06-14 19:43 -0400
Re: An overloading question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-14 20:45 -0400
Re: An overloading question sheldonlg <sheldonlg@thevillages.net> - 2011-06-14 21:58 -0400
Re: An overloading question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-14 22:08 -0400
Re: An overloading question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-15 14:21 +0200
Re: An overloading question sheldonlg <sheldonlg@thevillages.net> - 2011-06-15 12:55 -0400
Re: An overloading question Michael Fesser <netizen@gmx.de> - 2011-06-15 18:04 +0200
Re: An overloading question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-15 12:53 -0400
Re: An overloading question Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-06-15 03:41 +0000
Re: An overloading question Michael Fesser <netizen@gmx.de> - 2011-06-15 18:02 +0200
Re: An overloading question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-06-15 14:01 +0200
csiph-web