Click here to Skip to main content
16,008,075 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 5:05
sitebuilderLuc Pattyn9-Mar-09 5:05 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:53
CoolCoder_New9-Mar-09 5:53 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 6:02
sitebuilderLuc Pattyn9-Mar-09 6:02 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Dave Kreskowiak9-Mar-09 4:40
mveDave Kreskowiak9-Mar-09 4:40 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:48
CoolCoder_New9-Mar-09 5:48 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
Luc Pattyn9-Mar-09 6:00
sitebuilderLuc Pattyn9-Mar-09 6:00 
GeneralRe: GlobalMemoryStatus() return negative value like - Pin
CoolCoder_New9-Mar-09 5:54
CoolCoder_New9-Mar-09 5:54 
QuestionF# and IEnumerable Pin
Matty228-Mar-09 6:01
Matty228-Mar-09 6:01 
I can't for the life of me work out how to implement this in f#

protected override IEnumerable<shapedef> GetShapeDefinition()
{
// Yield out a Box2D shape definition
PolygonDef def = new PolygonDef();
def.VertexCount = 3;
def.Vertices[0] = new Vector2(0f, 6f);
def.Vertices[1] = new Vector2(-2f, -3f);
def.Vertices[2] = new Vector2(2f, -3f);

def.Restitution = 0f;
def.Friction = 1f;
def.Density = 1f;

yield return def;
}



The closest I've come is this

override x.GetShapeDefinition = seq<shapedef>{
let def = new PolygonDef()
def.VertexCount <- 3
def.Vertices.(0) <- new Vector2(1.0f, 2.0f)
def.Vertices.(1) <- new Vector2(-2.0f,-3.0f)
def.Vertices.(2) <- new Vector2(2.0f,-3.0f)
def.Restitution <- 0.0f
def.Friction <- 1.0f
def.Density <- 1.0f
yield (def :> ShapeDef)
}


But I get

No abstract property was found that corresponds to this override. (FS0191) - C:\Users\Matthew\Documents\SharpDevelop Projects\FSharpGame\FSharpGame\Ship.fs:20,14
AnswerRe: F# and IEnumerable Pin
Matty228-Mar-09 6:17
Matty228-Mar-09 6:17 
Question[Message Deleted] Pin
fraulin6-Mar-09 20:43
fraulin6-Mar-09 20:43 
AnswerRe: "image processing" Pin
Eddy Vluggen8-Mar-09 2:57
professionalEddy Vluggen8-Mar-09 2:57 
QuestionDeployment of Dot Net installar Pin
BijayaSharma6-Mar-09 8:30
BijayaSharma6-Mar-09 8:30 
AnswerRe: Deployment of Dot Net installar Pin
Curtis Schlak.6-Mar-09 9:28
Curtis Schlak.6-Mar-09 9:28 
AnswerRe: Deployment of Dot Net installar Pin
BijayaSharma6-Mar-09 10:48
BijayaSharma6-Mar-09 10:48 
Questionsingleton v/s pooling Pin
nicetohaveyou6-Mar-09 6:21
nicetohaveyou6-Mar-09 6:21 
AnswerRe: singleton v/s pooling Pin
Curtis Schlak.6-Mar-09 6:57
Curtis Schlak.6-Mar-09 6:57 
GeneralRe: singleton v/s pooling Pin
nicetohaveyou8-Mar-09 7:21
nicetohaveyou8-Mar-09 7:21 
GeneralRe: singleton v/s pooling Pin
Curtis Schlak.9-Mar-09 2:22
Curtis Schlak.9-Mar-09 2:22 
GeneralRe: singleton v/s pooling Pin
nicetohaveyou9-Mar-09 6:29
nicetohaveyou9-Mar-09 6:29 
GeneralRe: singleton v/s pooling Pin
supercat99-Mar-09 6:31
supercat99-Mar-09 6:31 
GeneralRe: singleton v/s pooling Pin
Curtis Schlak.9-Mar-09 7:36
Curtis Schlak.9-Mar-09 7:36 
AnswerRe: singleton v/s pooling Pin
led mike6-Mar-09 8:33
led mike6-Mar-09 8:33 
JokeRe: singleton v/s pooling Pin
Curtis Schlak.6-Mar-09 9:29
Curtis Schlak.6-Mar-09 9:29 
GeneralRe: singleton v/s pooling Pin
Luc Pattyn6-Mar-09 10:28
sitebuilderLuc Pattyn6-Mar-09 10:28 
GeneralRe: singleton v/s pooling Pin
PIEBALDconsult10-Mar-09 7:12
mvePIEBALDconsult10-Mar-09 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.