Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  Clash of Civilizations
  ICQ Meeting on macro/scenario stuff vs. code structure; JimC, Blade Runner, you in? (Page 2)

Post New Topic  Post A ReplyPost A Reply In A New Window

This topic is 2 pages long:   1  2  profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   ICQ Meeting on macro/scenario stuff vs. code structure; JimC, Blade Runner, you in? Format for Better Printing
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted September 04, 1999 15:32   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
me9

Blade Runner has already done Serious work oulining the general macro capabilities in the links at the top of this page. Unless anyone has BIG problems with his general approach I propose we adjourn and look at his Ideas more carefully.

Agree with mca6 above...

The main message from the point of the ongoing java coding is that all the code should use java bean structure.

Is everyone happy? I know JimC is... he just escaped from coding in a dank cell all day

If its ok with everyone, thanks for your participation, and see you around. If its not ok, I need to pick up my wife and will be back in about 20 min.

[This message has been edited by Mark_Everson (edited September 04, 1999).]

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 15:36   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Bl 10
Re: Me8

There is two possibilities: to find a Java macro language which is fit for our goal, or develop something ourselves.

1. Which is available:
a) Javascript interpreter (quite easy to use but somehow difficult to read)
b) NetRexx Java extension (difficult to use, the language powerfull and easy to read)
c) Basic interpreter (as is)
d) Java itself

2. What can we produce:
a) C-- or CPascal (the mix of the two language read my language description)
b) Pascal subset (This is my vote: structured, easy to understand, easy to read, etc.) [And I use professionaly 15 years ago...]
c) C subset (Also structured but somehow everybody like to write unchiperabl;e code with this language)
d) ?

Blade

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 15:50   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Bl (I think 11)
Re: Mca6

I'm quite happy without type declaration. But I think the variable and constant declaration is VERY important. I use BASIC for serious programming for a few times ages ago. My (and my colleges) common mistake was mistype the variable names or outwrite an important variable. I spend more time to debug these kind of problems than the rest of the bugs altogether. My new suggestion:

Variable
One;
Two;
Three;
EndVariable

Constant
XXX = 10;
CCC = 1000;
VVV = "BLABLA";
EndConstant

If the user Mistype the variable the interpreter send a "Not declared variable" or "Not declared constans" error message.

(I need to call my wife. I'll be back about the same time like Mark.)

Blade

mca
Chieftain
Odense, Denmark
b.02-15-99
posted September 04, 1999 16:03   Click Here to See the Profile for mcaClick Here to Email mca  send a private message to mca
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
[mca7]
re: bl11

How about making it an error to use any undefined variable, then (as opposed to an undeclared one), and of course an error to redefine a constant. Consider:

someFunction()
{
const theAnswer = 42;
x = theAnser + 111; // theAnser undefined. This error can be caught at compile time.
theAnswer = 111 + x; // theAnswer is constant and cannot be redefined/assigned to. This error can be caught at compile time.
const theAnswer = 111; // same thing.
}

(No, I don't like to declare constants/variables in specialized blocks either, but that's just a personal preference )

Martin
[This message has been edited by mca (edited September 04, 1999).]

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 16:23   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Bl12
re: Mca8

Aha. This is one of the basic of the structured languages: One needs to Define the variables.

Anyway. I have a solution for this problem:

There will be two possibilities:
Opc.1/The user can declare the variables and arrays.
Opc.2/ The user just define the variables and arrays.

In one module they cannot mix the two style.

Blade

mca
Chieftain
Odense, Denmark
b.02-15-99
posted September 04, 1999 16:29   Click Here to See the Profile for mcaClick Here to Email mca  send a private message to mca
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
[mca9]
re bl12

Damn, I thought I had that defined/declared thing right. Would you please elaborate?

Martin

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 16:34   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Mca,

LOL, about myself.

Of course I mean Declare.

Blade

mca
Chieftain
Odense, Denmark
b.02-15-99
posted September 04, 1999 16:39   Click Here to See the Profile for mcaClick Here to Email mca  send a private message to mca
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
[mca10]

Aha!

But I'm still not quite sure what you mean with users can't mix the two styles. Can you give an example?

Martin
[This message has been edited by mca (edited September 04, 1999).]

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 16:58   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Blade
Re: Mca

File 1:

//here start
Variable
One;
Two;
N;
VariableEnd;

SomeRutin(...){
One = 156;
To = 4455; // Error message: non declared variable To
N = One + Two;
}
// End of file

File 2:

//here start
SomeRutin(...){
One = 156;
To = 4455;
N = One + Two; // Error message: non defined variable Two
}
// End of file

I mean: If the system find the Variable keyword than ALL the variables in ALL the rutins inside one modul must Declared before use.

(I think we can enable for the users to mix the modul types (declared, defined) because there will be different people who use the system with different background and ideas. I like to use declared variables, somehow the whole program is more readible for me.)

Blade



[This message has been edited by Blade Runner (edited September 04, 1999).]

mca
Chieftain
Odense, Denmark
b.02-15-99
posted September 04, 1999 17:07   Click Here to See the Profile for mcaClick Here to Email mca  send a private message to mca
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
OIC! In the first example, allowing mixed styles would cause no error. Unless you require variables that were declared to also have been assigned a value (defined) before allowing their use.

Martin

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 17:12   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Re: Me, Mca, JimC,

Thuesday I'll post my modified version of the macro language. Let say I'll wait a couple of days, and if there will be no comment or ask for modification I'll start to write the tokenizer and parser part of the interpreter probably after the next weekend.

Is that OK?

Blade

(Here is 11.10 PM so I go to sleep. Tomorrow I'll check the thread and I'll write the answers for the questions if any.)

Blade Runner
Warlord
Belgium
b.02-15-99
posted September 04, 1999 17:24   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Mca,

To enable the mix use for the users is possible but IMHO wrong way. I understand your point. There are more people who will write one or maybe two not built-in variable in a short and dirty rutin. They neednt any exact declaration. On the other side a pesrson who will write 3-5 Kb source file for his/her scenario will be happy with the automatic variable check from the interpreter. So I think I'll enable both of the style, but not mix in one modul. If somebody just start to typing his/her idea and wouldnt like to use the variable/constant declaration part, OK. IMO mix the two style in one modul will be a complette code mess, so I dont support this.

Thankx for the ideas,

Blade

mca
Chieftain
Odense, Denmark
b.02-15-99
posted September 04, 1999 18:02   Click Here to See the Profile for mcaClick Here to Email mca  send a private message to mca
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Blade,

No problem, I'm glad that there will be more than one way to do things. I see your point, too, and I would typically support even type declarations and strong typing for anything but scripting, which tends (and sometimes needs?) to be too quick and dirty to bother with explicit declarations, types, and such.

Glad to be of service,

Martin
[This message has been edited by mca (edited September 04, 1999).]

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted September 04, 1999 18:27   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Blade Runner:

Yes, your approach sounds good. But you will embarass us by having the macro language done Long before there's anything for it to operate on .

Blade Runner, mca, JimC:

Thanks for coming to the meeting and GREAT Job. We have 'seen the taillights' on one big issue.


Others: If you don't register any objections within the next day or so, say 18:00 EST Sunday Sept. 5th, our decisions from this meeting will be considered Locked In. Speak now or never

For a summary of conclusions look at the post labelled me6 on page 1, and up to about 10 posts thereafter.

-Mark
[This message has been edited by Mark_Everson (edited September 04, 1999).]

Apolyton Civilization Site Forums
> > > Clash of Civilizations Forum

This topic is 2 pages long:   1  2 
next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site