¡@

Home 

c++ Programming Glossary: setx_a

From C ++ to Haskell Classes and States

http://stackoverflow.com/questions/6225483/from-c-to-haskell-classes-and-states

have to transform this C code class A public int x_A void setX_A int newx x_A newx void printX_A printf x_A is d x_A class B.. void printX_B printf x_B is d x_B main A objA B objB objA.setX_A 2 objA.printX_A objB.printX_A objB.setX_B 5 objB.printX_B into.. constA FieldsA class A a where getX_A StateT a IO Int setX_A Int StateT a IO printX_A StateT a IO instance A FieldsA where..