| To: | REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Call confusion |
| From: | Ed Kleban <Ed at Kleban dot com> |
| Date: | Sat, 31 Dec 2005 15:05:33 -0600 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| Thread-index: | AcYOTfAXLrYuFHpBEdqt6gANk0o3Jg== |
| Thread-topic: | Call confusion |
If I have methods for:
foo( x as Integer )
foo( x as String )
foo( x as Variant )
and I call foo( 23 )
Which version of foo is supposed to be called?
Also, if I have:
bar( x as Integer )
baz( x as Variant )
and baz is a subclass of bar, then which method is supposed to be called
for:
baz( 42 )
???
I'm looking for documented or known answers for what is supposed to be the
correct answer here, not guesses or opinions.
Of course I fully expect to get the guesses and opinions as well :-)
Happy new year all!
--Ed
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Do you use Array.Pop?, Norman Palardy |
|---|---|
| Next by Date: | Re: Crash on close (toolbar w/ HTMLViewer) workarounds?, Brad Rhine |
| Previous by Thread: | Crash on close (toolbar w/ HTMLViewer) workarounds?, Corey Redlien |
| Next by Thread: | Re: Call confusion, Steve Garman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |