Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. What is wrong with this function?

What is wrong with this function?

Scheduled Pinned Locked Moved The Lounge
question
27 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chamu Matumbura
    wrote on last edited by
    #1

    Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

    Reuse! Buy If You Can! Build If You Must

    D S C P R 16 Replies Last reply
    0
    • C Chamu Matumbura

      Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

      Reuse! Buy If You Can! Build If You Must

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      Bit more information might help in your quest for an answer. Like, what the hell are you talking about? :)

      ------------------------------------ "I'm going to walk around a field dangling my keys on a bit of string until I hear whistling noises. " Steve Harris 2009

      1 Reply Last reply
      0
      • C Chamu Matumbura

        Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

        Reuse! Buy If You Can! Build If You Must

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        Probably something to do with polymorphism.

        Simon

        1 Reply Last reply
        0
        • C Chamu Matumbura

          Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

          Reuse! Buy If You Can! Build If You Must

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Chamu Matumbura wrote:

          Goodness me, this function is designed to return a fish, but it is returning a snake.

          Chamu Matumbura wrote:

          What is wrong with this function?

          The designer? :-D

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          C 1 Reply Last reply
          0
          • C Chamu Matumbura

            Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

            Reuse! Buy If You Can! Build If You Must

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            You've implemented the IReptile interface, not IAquatic. Wow, what a noob error - sheesh, and you call yourself a developer.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            D 1 Reply Last reply
            0
            • P Pete OHanlon

              You've implemented the IReptile interface, not IAquatic. Wow, what a noob error - sheesh, and you call yourself a developer.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              D Offline
              D Offline
              Dalek Dave
              wrote on last edited by
              #6

              I saw this when Apple launched it's iPod for iWhales.

              ------------------------------------ "I'm going to walk around a field dangling my keys on a bit of string until I hear whistling noises. " Steve Harris 2009

              S Z 2 Replies Last reply
              0
              • C Chamu Matumbura

                Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                Reuse! Buy If You Can! Build If You Must

                N Offline
                N Offline
                NormDroid
                wrote on last edited by
                #7

                Clue? or rather Clueless!

                Software Kinetics (requires SL3 beta) - Moving software

                D 1 Reply Last reply
                0
                • N NormDroid

                  Clue? or rather Clueless!

                  Software Kinetics (requires SL3 beta) - Moving software

                  D Offline
                  D Offline
                  Dalek Dave
                  wrote on last edited by
                  #8

                  It's not the CCC!

                  ------------------------------------ "I'm going to walk around a field dangling my keys on a bit of string until I hear whistling noises. " Steve Harris 2009

                  1 Reply Last reply
                  0
                  • C Chamu Matumbura

                    Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                    Reuse! Buy If You Can! Build If You Must

                    R Offline
                    R Offline
                    Russell Jones
                    wrote on last edited by
                    #9

                    Is this a surrealist joke?

                    H 1 Reply Last reply
                    0
                    • C Chamu Matumbura

                      Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                      Reuse! Buy If You Can! Build If You Must

                      N Offline
                      N Offline
                      NormDroid
                      wrote on last edited by
                      #10

                      Second post, first post 1.0 * 20 votes. Can't post in the correct forum, and can't provide detailed information. For that I deduce: You're using VB and trying to learn the art of coding. Good luck and bad luck for those who employ you.

                      Software Kinetics (requires SL3 beta) - Moving software

                      P 1 Reply Last reply
                      0
                      • R Russell Jones

                        Is this a surrealist joke?

                        H Offline
                        H Offline
                        hairy_hats
                        wrote on last edited by
                        #11

                        A giraffe.

                        I hope you realise that hamsters are very creative when it comes to revenge. - Elaine

                        1 Reply Last reply
                        0
                        • C Chamu Matumbura

                          Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                          Reuse! Buy If You Can! Build If You Must

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #12

                          Give up and move onto something you are good at. I do not want to be cruel but you have shown no understanding of what you are doing.

                          Visit http://www.notreadytogiveup.com/[^] and do something special today.

                          1 Reply Last reply
                          0
                          • N NormDroid

                            Second post, first post 1.0 * 20 votes. Can't post in the correct forum, and can't provide detailed information. For that I deduce: You're using VB and trying to learn the art of coding. Good luck and bad luck for those who employ you.

                            Software Kinetics (requires SL3 beta) - Moving software

                            P Offline
                            P Offline
                            Pete OHanlon
                            wrote on last edited by
                            #13

                            Norm .net wrote:

                            the art of coding

                            Is that Sun Tzu's hit followup book? Released shortly after the bestselling The Art of Farting.

                            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                            My blog | My articles | MoXAML PowerToys | Onyx

                            D 1 Reply Last reply
                            0
                            • C Chamu Matumbura

                              Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                              Reuse! Buy If You Can! Build If You Must

                              L Offline
                              L Offline
                              leppie
                              wrote on last edited by
                              #14

                              Chamu Matumbura wrote:

                              but it is returning a snake.

                              And a badger and a mushhhrrrrrrrrrooooooooooooooooooooom!

                              xacc.ide
                              IronScheme - 1.0 beta 4 - out now!
                              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                              1 Reply Last reply
                              0
                              • P Pete OHanlon

                                Norm .net wrote:

                                the art of coding

                                Is that Sun Tzu's hit followup book? Released shortly after the bestselling The Art of Farting.

                                "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                My blog | My articles | MoXAML PowerToys | Onyx

                                D Offline
                                D Offline
                                Dalek Dave
                                wrote on last edited by
                                #15

                                Reminds me of a recent unearthing. After being lost for 800 years, archaelogists have uncovered a hermitage in County Kerry, Ireland. In it they found an old Manuscript, in Latin, called "Irish Dancing Volume Two - How to move the Arms".

                                ------------------------------------ "I'm going to walk around a field dangling my keys on a bit of string until I hear whistling noises. " Steve Harris 2009

                                1 Reply Last reply
                                0
                                • C Chamu Matumbura

                                  Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                                  Reuse! Buy If You Can! Build If You Must

                                  U Offline
                                  U Offline
                                  urbane tiger
                                  wrote on last edited by
                                  #16

                                  just cast the bloody thing, back where it came from.

                                  "we shall patiently bear the trials that fate imposes on us" -- Anton Chekhov Uncle Vanya

                                  1 Reply Last reply
                                  0
                                  • C Chamu Matumbura

                                    Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                                    Reuse! Buy If You Can! Build If You Must

                                    M Offline
                                    M Offline
                                    Mark_Wallace
                                    wrote on last edited by
                                    #17

                                    You called Naga.Create instead of Vishnu.Creator

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    D 1 Reply Last reply
                                    0
                                    • M Mark_Wallace

                                      You called Naga.Create instead of Vishnu.Creator

                                      I wanna be a eunuchs developer! Pass me a bread knife!

                                      D Offline
                                      D Offline
                                      Dalek Dave
                                      wrote on last edited by
                                      #18

                                      Mark Wallace wrote:

                                      Vishnu.Creator

                                      Are we outsourcing to India Again?

                                      ------------------------------------ "I'm going to walk around a field dangling my keys on a bit of string until I hear whistling noises. " Steve Harris 2009

                                      M 1 Reply Last reply
                                      0
                                      • C CPallini

                                        Chamu Matumbura wrote:

                                        Goodness me, this function is designed to return a fish, but it is returning a snake.

                                        Chamu Matumbura wrote:

                                        What is wrong with this function?

                                        The designer? :-D

                                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                                        [My articles]

                                        C Offline
                                        C Offline
                                        Chamu Matumbura
                                        wrote on last edited by
                                        #19

                                        Lol

                                        Reuse! Buy If You Can! Build If You Must

                                        1 Reply Last reply
                                        0
                                        • C Chamu Matumbura

                                          Goodness me, this function is designed to return a fish, but it is returning a snake. :^)

                                          Reuse! Buy If You Can! Build If You Must

                                          A Offline
                                          A Offline
                                          Anthony Mushrow
                                          wrote on last edited by
                                          #20

                                          Whatever you're smoking you need to share it with the group.

                                          My current favourite word is: Delicious!

                                          -SK Genius

                                          Game Programming articles start -here[^]-

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups