Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Language Reference and Guide
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#16
RE: Script Language Reference and Guide

I think the problem is simply that the return value could be
const string&, otherwise it is possible to change the value and you get all kinds of strange stuff.

the easiest way to go around is to have the variable be
string sMyVariable = ...
then the value gets copied, instead of the reference (memory address) being used as the return variable.
01-29-2013, 11:18 AM
Find


Messages In This Thread
RE: Script Language Reference and Guide - by Thomas - 01-29-2013, 11:18 AM



Users browsing this thread: 3 Guest(s)