- Joined
- Nov 28, 2008
- Messages
- 655
Ehh, (int)"42" works in Andromeda, if that is what you're trying to get at.
That is just being lazy,

Ehh, (int)"42" works in Andromeda, if that is what you're trying to get at.
Based on question 1, you don't seem to.Yes I do know what a typecast is.
It makes no sense. We cast in two general ways (I am making the names up):1. Why is (int)"42" bad?
char *s = "42";
int *i = (int *)s; //*i is 52 or undefined or 3407922 or whatever depending on the language's handling of chars
While some languages allow the two interchangeably, (int)"42" implies a typecast while int("42") implies a function call.2. What is the difference between (int)"42" and int("42")?
Exactly.I think that what you mean is that all paradigms are good depending on the use you want to give to them and depending on the problem you are trying to solve.
Galaxy is completely different to C. Both "int" and "string" are objects (not object pointers, at least at the level we see in the code), therefore casting between them is not changing a pointer to a value, merely changing the type of object.
If int is an overloaded function then yes, it would make sense, although toInt(s) may be a better name.
I have two simple questions.
I know OOP from C++, but I've never heard the word "enrichment" when reading or hearing about OOP, what do you mean by it?
And you also mention generic, does this mean templates? Templates is a difficult subject to implement. I'm skeptic about this project, but I hope it'll work out
Also, I've never used Java or studied any of it, but I've heard it lacks speed. If this is true, then don't you think it's a problem?
I assume you mean program in. If so, no, it really isn't.OO is easier to "write" in
I assume you mean program in. If so, no, it really isn't.
No, for you it's easier because that's all you have programmed in, as you admit.
You also don't seem to realize that there are other types of languages other than OO and procedural. Hell, those are both in the same category (imperative)!
I still don't understand the need to write something like Andromeda before the full version is even out...
Because scripting at all is a pain now. A portable library that you can use while scripting is near impossible to implement. You can create GUI libraries which are plug and play - not so with scripting. You have to prefix everything, and naming conflicts are going to happen before long.
Personally, I just hate having to write a prefix like MfPr on every function. Andromeda removes that. I am happy! Also, enrichments/methods in structs are nice.
But... OOP! Being a good programmer is overrated when you can continue writing the same crap everywhere!But it is the BETA.
But it is the BETA.
My point is not that it could be useful, my point is that waiting till the full version comes out might be a smart idea.
What we have might be similar to the final editor, but then again maybe some of these architectural "mistakes" that we are finding are just in this version, and the full one might have some significant changes.
That is all I am trying to say.
Q. Getting custom script into maps is currently complex. Are there plans to implement Galaxy scripting directly into the editor?
A. There are currently no plans for Galaxy script editing in the editor itself. However, through the Import Manager it should be pretty easy to add in your scripts as necessary. Are you having trouble doing it that way?
I don't understand this debate, OOP is good in many circumstances, so having it helps us in those circumstances(Which aren't just a few textbook examples, As a maintenance programmer most bugs I fix can be attributed to not taking advantage of the paradigm(Ok duplicate code takes the 1st place spot but the other is 2nd(Plus many times duplicate code is best organized in OO)))
But my main point over all others would be, are we stopping you from using procedural programming? Are we stuffing OO down your throat?(Is it the other way around maybe???) or is he just an inviting you to try Andromeda out? Even if you were to use Andromeda would that stop you from procedural programming? Plus Andromeda has a fair amount of things that aren't meant for OO people anyway. So I would still use for any project. I don't see a reason for debating over apples and oranges when you can choose whichever you want either way
Or, as these people seem to subscribe to, pitch reason out of the window and use OOP all the time.Every way of programming has it's pros and cons. The best one depends on what you are doing imo. After all that's what it is being a programmer, "getting to the best solution in the least time". You just have to know which way to pick when you are doing your stuff.
What is this expansion? I never heard of it. Where can I find it?phynGal
And you are obsessed with making crappy criticism about it. You don't like OOP and you don't think Andromeda is useful. We get your point, now stop trying to proof something that is obviously wrong, stop trying to proof that Andromeda is useless.Poot is obsessed with arguing about it,
Or, as these people seem to subscribe to, pitch reason out of the window and use OOP all the time.
right. where did this debate come from? I just asked if the devs of the project really meant templates when they were talking about generic programming on the topic, and what they mean with "enrichment"![]()
right. where did this debate come from? I just asked if the devs of the project really meant templates when they were talking about generic programming on the topic, and what they mean with "enrichment"![]()
phynGal doesn't need to be in the Support folder any more, so they can work together.
to add new members to existing objects and so.
Edit2: How do you even run a .jar from lua? I fail completely. Need to learn lua and learn to use its win command line-ness.
I havn't worked much with scripting myself, but I'm pretty sure Lua can't do that, and it's all coded by a programming language, which then might let Lua call a function to run a .jar![]()
You can just set up a normal command. So you can start the jar like you would start it from command line. Or create a .bat file that starts andromeda and call this one (this is how GMSI injected itself into JNGP).
And Lua can start such a command on it's own? That kinda means Lua has the potential to do harm :S
Everything has the potential to do harm, I don't understand what you're trying to say.
And no, it can't do it on its own. Happily, it's not skynet yet.
What does that have to do with anything?I run Linux![]()
Then that was because you were unaware of the dangers.Anyways, I was thinking about that I've run .Lua files before without concern
It is so safe that it practically doesn't need an anti-virus, thus not having problems like JNGP has.What does that have to do with anything?
What does that have to do with anything?Then that was because you were unaware of the dangers.
It is so safe that it practically doesn't need an anti-virus, thus not having problems like JNGP has.
There is no better way of doing this Water. JNGP also used memory injection methods to add new features and it also had the possibility of causing harm. However it doesn't cause harm because the people behind the project are trust worthy, like gekko and his team. You can build projects if you don't trust other people.