on the server side is passing by reference allowed?

suspectDevice12suspectDevice12 dijo

hace mucho tiempo | Publicación #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 dijo

hace mucho tiempo | Publicación #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

Contestar al tema

Regístrate ahora para responder a éste tema

Juegamigo

juegamigo.com es un sitio de juegos independiente donde puedes jugar solo o en conjunto en los juegos multijugador de una manera gratuita.

Herramientas para Desarrolladores

Si eres un desarrollador de juegos flash, tenemos unas increíbles herramientas que te ayudarán a hacer aún mejores tus juegos.

Juegos Padrísimos

¿Por qué no jugar algunos de los mejores juegos flash en línea que tenemos?, ¡es completamente gratis!

Copyright ©2007-2012 Juegamigo™ - All rights reserved.29.0017ms on SERVER34097