No, I think the closest you can get is:

1
2
3
4
5
type S = struct
  val x : int
  val y : int
  new(s:S) = { x = s.x; y = s.y }
end

You can grab a this pointer using "as", but it isn't assignable in the constructor:

1
2
3
4
5
type S = struct
  val x : int
  val y : int
  new(s:S) as this = { x = s.x; y = s.y }
end

Cheers,
Rob

By on 3/27/2008 1:17 AM ()
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