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 / why I can't use using name space agk?

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 6th Mar 2012 08:59
when I want to call a agk method , I always need use agk::, how can I avoid it?

The Miracrea Games
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 6th Mar 2012 14:04
would like to know too, just for info purposes
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 6th Mar 2012 14:32
From all I can know, it's impossible, because AGK::agk is a class.

AGK is namespace and it's member agk is a class.

If agk was an namespace nested inside AppGameKit, then you could do that:



And all would work, but since it's a class, you'd have to:



And so on, for all AGK's functions nested inside agk class.

halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 6th Mar 2012 14:34
@kamac, I see. Thank you very much!

The Miracrea Games
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 6th Mar 2012 14:46
You're welcome

Login to post a reply

Server time is: 2024-05-07 16:33:56
Your offset time is: 2024-05-07 16:33:56