on the server side is passing by reference allowed?

suspectDevice12suspectDevice12 sagði

fyrir löngu síðan | Færsla #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 sagði

fyrir löngu síðan | Færsla #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

Svara þræði

Skráðu þig núna til að svara þráðum

Spilatorg

Velkomin(n) á spilatorg.is. Spilatorg er sjálfstæð leikjasíða þar sem þú getur spilað bæði einstaklings- og fjölspilunarleiki frítt.

Tól hönnuða

Ef þú ert flash leikja hönnuður, þá erum við með nokkur frábær tól til að hjálpa þér að búa til jafnvel enn betri leiki.

Frábærir leikir

Af hverju prófarðu ekki nokkra af bestu flash netleikjunum sem við erum með, algjörlega frítt?

Copyright ©2007-2012 Spilatorg™ - All rights reserved.33.0019ms on SERVER34097