You should have a look at

[link:msdn.microsoft.com]

and pick a smaller code sample for starters.

By on 5/13/2010 5:32 AM ()

Thanks Mr. brianmcn

already tried that but didnot work

RIGHT_THEN

By on 5/13/2010 8:31 AM ()

1.) Maybe you can tell us the error you're getting? What sort of syntax errors are you seeing?

2.) Are you attempting to run this under FSI or are you attempting to compile it?

3.) I agree with Brian. Start with a smaller, simpler chunk of code and see if you can get that working.

By on 5/13/2010 11:04 AM ()

Thanks Mr. Onorio for your interest

now i have been able to make it work

with verbose but not word by word

i had to restyle many things because of my

lack of knowledge namely.

i was not able to get it right in implicit

class defination manner. so i tried changing it

to explicit class defination .

in that all let bindings had to go .i converted

all that seemed like identifier let bindings to properties

and all let bindings that seemed like Functions

i converted them to members.

the do bindings i converted to let bindings that were inside the functions. thou there is just one do binding

inside async block.

i was not able to get the updates value right so i changed it to a constant numeric value just to get it

working and it worked.

now here are some questions.

1)in verbose code inside implicit classes

are do bindings not allowed even inside

of function body??

2) i understand that all Vals have to be

initialized inside class constructors. but how to

give them null values. or what is the equivalent of null in f# like

val SomeVal:SomeClass

new () ={

SomeVal = null ; // never works

// it has to be

SomeVal = new SomeClass() ;

}

but this thing creates problems .

what if i had to pass a function pointer/delegate

inside the SomeClass() constructor that was defined inside this class the error comes that i cannot use

a memeber before class is initialized in the constructor like in the statement

let mailbox = new MailboxProcessor<Updates<'a>>(mailboxWorkflow)

this let i converted to property mailbox which

returns mailbox_val when its get() is invoked.but since

mailbox_val is a Val inside the class it has to be initialized inside new(){}; there i cannot write

new () {

mailbox_val = new MailboxProcessor<Updates<'a>>(mailboxWorkflow)

}

it gives error saying mailboxWorkflow is not approchable before class is initialised .So i had to

put the body of mailboxWorkflow through (fun -> )

here instead of mailboxWorkflow.

3) i understand how to make static members. and i can reference them outside like ClassObject.StaticMember(); but how to use them

from within a class itself.because before writing the

body of mailboxWorkflow right there inside the

constructor i tried converting it to static member

and then referencing it inside the class constructor

mailbox_val = new MailboxProcessor<Updates<'a>>(mailboxWorkflow)

but it did not work.

i have long list of questions but i think this post is allready a bother so i will leave it for next post.

now if you would be so kind

and yes i have tried smaller codes

and was able to work with them.

ThankingYou

RIGHT_THEN

By on 5/14/2010 1:25 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