[Opa] Limitations on what you can send over a network?

Mads Hartmann Jensen mads379 at gmail.com
Sat Aug 6 04:43:59 EDT 2011


Hi guys,

Are there any limitations on what you can send over a network created using the Network.cloud function 
as shown below. In the chat example you don't use any "nested" data types so I was wonder if it is possible.

@publish game = Network.cloud("game") : Network.network(board)

Currently I'm trying to send the following type 

type board = {positions: stringmap(intmap(position))}

where position is another type I have declared. 

At runtime I'm getting the following error when I use 

do Network.broadcast(board, game)

Error: File "stdlib/core/opavalue.opa", line 328, characters 18-144, (328:18-328:144 | 10580-10706) @fail: [Record.fold_with_fields] value:{ some: { kind: { rook: { }, }, color: { white: { }, }, }, } all_field:{ hd: { label: x, ty: { TyConst: { TyInt: { }, }, }, }, tl: { hd: { label: y, ty: { TyConst: { TyInt: { }, }, }, }, tl: { nil: { }, }, }, } fields:{ nil: { }, }

Thanks,
Mads Hartmann 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/opa/attachments/20110806/38a34aac/attachment.html 


More information about the Opa mailing list