FreeOrion

Forums for the FreeOrion project
It is currently Fri May 24, 2013 12:05 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Mailing list
PostPosted: Thu Jan 17, 2008 1:18 pm 
Offline
Space Krill
User avatar

Joined: Mon Jan 07, 2008 6:00 pm
Posts: 5
Location: Geneva, Switzerland
Hi there,

I posted a couple of questions on the dev mailing list yesterday, but I didn't get any answer.

Is this because:
1. I'm used to fast-answer mailing lists and I'm just an impatient newbie
2. The mailing list is hardly looked at by anyone, and everybody uses theses forums instead?

My question was quite technical (C++), should I ask it here in a separate thread?

Thanks a lot, and sorry for the eventual annoyment :)

- Trib'


Top
 Profile  
 
 Post subject: Re: Mailing list
PostPosted: Thu Jan 17, 2008 2:08 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7893
Location: Vancouver, BC
Pretty much all discussion is done on the forums. There is a help thread in the programming section for questions that aren't just about how to compile, though making a new thread is fine.

That said, I'm not sure why I didn't get the messages posted to the list...

That said, if I'm reading the times right, it's only been five hours, which is a bit quick to expect a reply...

But to answer the question, I wouldn't bother trying to expose something as complicated as an iterator to Python. Instead, I'd add a new function

const std::set<int>& Fleet::GetShipIDs() const

and expose that to Python. I'm not sure why such a function doesn't already exist.


Top
 Profile  
 
 Post subject: Re: Mailing list
PostPosted: Thu Jan 17, 2008 2:19 pm 
Offline
Space Krill
User avatar

Joined: Mon Jan 07, 2008 6:00 pm
Posts: 5
Location: Geneva, Switzerland
Makes sense to only expose a std::set<int>.

I'll add the function as well as others in the same vein to the python API (System.GetFleets() for example).

Should I attach the future patch to theses forums or send them by email to the list? :)
Also, what format to you like your patche? Is the GNU diff -u format ok?

Cheers

- Trib'


Top
 Profile  
 
 Post subject: Re: Mailing list
PostPosted: Thu Jan 17, 2008 2:28 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7893
Location: Vancouver, BC
Forum post is probably best.

svn diff > descriptive_name.patch


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group