What you say!! Sorry, WebSharper 3 does not follow OO semantics well. If your method is hey, you can make a heyBase with the implementation, with default hey just calling that, and subclass overriding it. But I know this is harder to follow in more complex scenarios.

1
2
3
4
5
6
7
8
type AFoo() =
    abstract hey: unit -> string
    default this.hey() = this.heyBase()
    member this.heyBase() = "hello" 

type SubFoo() =
    inherit AFoo()
    override this.hey() = this.heyBase() + " world"

WebSharper 4 alpha is coming soon with correct override, hiding, interface implementations, base calls, static constructors and more. For great justice.

By on 11/20/2015 3:06 AM ()

We get signal. You know what you doing.

Also, can't wait for the alpha!

By on 11/20/2015 2:55 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper