Thread Tools
Old October 31, 2002, 23:40   #1
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 10:11
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
User defined structures
It is possible with SLIC to make a user-defined array. But does anybody know if you can define your own structure?

If so, how does slic handle the arguements?

If you could fuse the C and SLIC languages what I would like to do is something like:

Struct_t MyStruct {
int_t Value1;
int_t Value2;
unit_t tmpUnit;
}

But of course there is no "_t" equivalent to the C "struct" keyword.

Does anyone know if SLIC allows the user to define his own structure?
ahenobarb is offline  
Old November 1, 2002, 02:37   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 12:11
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Nope, not possible. You'll just have to be clever in playing with your array indices
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old November 1, 2002, 10:14   #3
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 10:11
Local Date: November 1, 2010
Join Date: Nov 2001
Posts: 437
Quote:
Originally posted by Locutus
Nope, not possible. You'll just have to be clever in playing with your array indices
You mean " a dumba-s-s workaround for a dumba-s-s design flaw?"
ahenobarb is offline  
Old November 1, 2002, 10:16   #4
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 12:11
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Indeed. This is good: you're starting to develop an insight in the underlying design philosophies of SLIC programming
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:11.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team