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. Why do I listen to my sleep coding self?

Why do I listen to my sleep coding self?

Scheduled Pinned Locked Moved The Lounge
csharpdesignquestion
41 Posts 20 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.
  • P patbob

    BobJanova wrote:

    static inheritance (i.e. static virtual in C# speak), and that's a really useful concept that is missing in C#

    Couldn't you use a singleton of some related class hierarchy that implements the "static" code?

    We can program with only 1's, but if all you've got are zeros, you've got nothing.

    B Offline
    B Offline
    BobJanova
    wrote on last edited by
    #41

    Well sure, but that's obviously working around a language limitation. If you're making instances of classes that store no state, you should be using static inheritance instead, and the only reason we don't is that it's not supported.

    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