on the server side is passing by reference allowed?

suspectDevice12suspectDevice12 said

2 weeks ago | Post #1
Hi,

I wrote a bunch of code that uses the ref keyword. Compiles and runs fine in a different non nonoba project. Wanted to save a lot of time and copy the code into my nonoba project.

The code compiles fine, however when I run the server I get the following message:

ServersideGameCode.RezGen.SwirlTurtle.calcDropPoints(...) has argument/parameter of the non-allowed type: System.Int32&

So my questions is, is passing by reference allowed? Is there a web page that outlines all the funny things programmers are not allowed to do in the nonoba api? Like not being able to use the static keyword?

ChrisChris said

2 weeks ago | Post #2
Hi,

System.Int32& is used for pointers in unmanaged C# code, which we naturally do not allow you to run in our environment.

We are aware that filtering on System.Int32& directly, but we chose to error on the save side in this case.

/Chris

Reply to thread

Sign up now to reply to threads

Nonoba

nonoba.com is an independent gaming site where you can play both single- and multiplayer games for free.

Developer Tools

If you're a flash game developer, we've got some awesome tools to help you make even better games.

Great Games

Why not try some of the very best online flash games we've got, completely free?

Copyright ©2007-2009 Nonoba™ - All rights reserved.15,6001ms on NONOBA-WEB1