on the server side is passing by reference allowed?

suspectDevice12suspectDevice12 povedal

veľmi dávno | Príspevok #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 povedal

veľmi dávno | Príspevok #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

Odpoveď na diskusiu

Zaregistruj sa a zapoj sa do diskusie

Flashky.sk

flashky.sk je herný portál kde môžeš hraj single- aj multiplayerové flashové hry.

Nástroje pre vývojárov

Ak si vývojár flash hier tak pre teba máme skvelé nástroje, ktoré ti pomôžu robiť ešte lepšie hry.

Skvelé hry

Vyskúšaj niektoré z najlepších online flash hier, ktoré tu máme! Samozrejme zadarmo

Copyright ©2007-2012 Flashky.sk™ - All rights reserved.15.6ms on SERVER34096