Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Array Initialization

Author
Message
Heavens
9
Years of Service
User Offline
Joined: 10th May 2015
Location:
Posted: 14th Aug 2016 22:53
So when I first wrote the code below I believed it was a problem with passing local new style arrays to a function but after testing the code it seems to be the Initialization list of the new style arrays but it still demonstrates the point:



So a local dim array works fine, a global dim array works fine, a global new style array works fine, but a local new style array contains only zeros, uncommenting the two line in ArraySetup() function allows the result I expect, or am I simply doing this wrong?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 15th Aug 2016 18:53 Edited at: 15th Aug 2016 18:56
for quite some time declaration with direct assignment was a problem in agk for any reason ..

AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-09-29 17:31:41
Your offset time is: 2024-09-29 17:31:41