[Freeciv-Dev] [patch #1562] API: Define convenience functionality for Types

2010-04-10 Thread Ulrik Sverdrup

Update of patch #1562 (project freeciv):

  Status:  Ready For Test = Done   
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/patch/?1562

___
  Meddelandet skickades via/av Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #1562] API: Define convenience functionality for Types

2010-04-09 Thread Ulrik Sverdrup

Follow-up Comment #3, patch #1562 (project freeciv):

Very small patch update for tolua-5.1 (tolua-5.1 can't handle embedded code
block ending in comment)

(file #8879)
___

Additional Item Attachment:

File name: 2010040901-API-Define-convenience-functionality-for-Types.patch
Size:2 KB


___

Reply to this item at:

  http://gna.org/patch/?1562

___
  Meddelandet skickades via/av Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #1562] API: Define convenience functionality for Types

2010-04-09 Thread Ulrik Sverdrup

Follow-up Comment #4, patch #1562 (project freeciv):

Sorry for the spam. Yet another update for Lua-5.1, '.string' metamethod does
not exist, we use '__tostring' instead.

(file #8880)
___

Additional Item Attachment:

File name: 2010040901-3-API-Define-convenience-functionality-for-Types.patch
Size:2 KB


___

Reply to this item at:

  http://gna.org/patch/?1562

___
  Meddelandet skickades via/av Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #1562] API: Define convenience functionality for Types

2010-03-27 Thread Ulrik Sverdrup

Update of patch #1562 (project freeciv):

 Planned Release: = 2.3.0  
 Summary: Scripting: Define the equality comparison for API
Types = API: Define convenience functionality for Types

___

Follow-up Comment #1:

Updated patch. Define equality comparison and string representation.

Define the == equality operator for all API datatypes, so you can
compare objects directly (instead of comparing the id field, which is
of course what the equality operation does).

Define a string representation, so that when printed, userdata types
output something like the following (instead of userdata: 0x0x1080ac48):

  Government #2 Monarchy
  Unit #114
  Player #0 Agamemnon
  City #137 Agadir

A single quote (') is removed in a comment, it disturbs syntax
highlighting if you want to view api.pkg in Lua syntax colors.


(file #8673)
___

Additional Item Attachment:

File name: 0001-API-Define-convenience-functionality-for-Types.patch Size:2
KB


___

Reply to this item at:

  http://gna.org/patch/?1562

___
  Meddelandet skickades via/av Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev