Search found 94 matches

by Apemant
Tue Dec 11, 2007 5:54 pm
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

hmm hopefully you are not editing it now :) What is a defFunction? (yes I know what you mean but that is what I mean by consistent) ps: don't forget to edit the if function hmm should I just use 'function' again? Let's try.. :) Eh, I'm not satisfied... basically because those 'functions' don't need...
by Apemant
Tue Dec 11, 2007 5:30 pm
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

now that I think about it some more I think you are right the left to right rule should be first (they both would have different outcomes in some code but I am too lazy to test right now). But you really need to explain more on the parens. They are scary to non coders. ps: I blame this whole argume...
by Apemant
Tue Dec 11, 2007 4:35 pm
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

1. Run from innermost function to outermost function. Perhaps this is a disagreement in conceptual approach to the problem of programming... But, let's try to explore those differences. When you say 'run from innermost to outermost function', what are you really saying? In (add 2 (multiply 3 3)), w...
by Apemant
Tue Dec 11, 2007 3:38 pm
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

there is most likely others. So any opinions? I am more than happy with discussing better argument names. No objections right now, sounds about fine. Condition, actually, is never really a condition, strictly speaking; it's just about anything. Nil is the only 'false' thing, and everything else is ...
by Apemant
Tue Dec 11, 2007 2:53 pm
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

Many functions can be passed code and with the help of lambda you can even pass code to user definded functions without it being evaluated or even named. Such as objEnumItems. how does this sound (I did test the same level thing you can't assume those kinds of things). Functions are evaluated from ...
by Apemant
Tue Dec 11, 2007 2:43 pm
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

we really need to agree on what the arguments should be called first documentation is useless if it isn't consistent. and don't forget it would be clearer if you put the syntax like this Syntax: (switch condition command^2 defCommand) Agreed. So how do we call arguments consistently? Variable argum...
by Apemant
Tue Dec 11, 2007 1:09 pm
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

Name: switch Syntax: (switch condition function^2 [function]) Argument List: condition: a condition which must be fulfilled in order to execute a subsequent function function: a function that gets invoked if the previous condition is met (i.e. evaluating to non-Nil) optional function: a function whi...
by Apemant
Tue Dec 11, 2007 1:08 pm
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

Name: if Syntax: (if condition function [function]) Argument List: Condition: anything that evaluates to Nil or non-Nil Function: a function that gets invoked if 'condition' evaluates to non-Nil (if it is 'true') Optional function: a function that gets invoked if 'condition' evaluates to Nil (i.e. i...
by Apemant
Tue Dec 11, 2007 12:20 pm
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

Looking perfectly natural isn't good enough. You must come up with a set of rules that people can understand even if it doesn't look "perfectly natural". The reason we need these rules is because people might not get it. Saying it is perfectly natural seems a bit insulting. Also you can not say a f...
by Apemant
Tue Dec 11, 2007 10:40 am
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

Betelgeuse wrote:Name:
count
I see you are doing them alphabetically; do you plan on posting them all like that? If I wanted to participate, what should I do, continue with the alphabetical order I do it randomly?
by Apemant
Tue Dec 11, 2007 10:37 am
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

any lambda function or any code that is used in argument lists of code. Is the biggest one that I know of. There maybe other times where it comes into play. (setq func (lambda Nil (dbgOutPut "this will not output before setq is run") ) Hmm, well I guess it might look odd to someone, but to me it lo...
by Apemant
Tue Dec 11, 2007 10:10 am
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

Betelgeuse wrote:I mean the order functions are run in. It is not always left to right or right to left. Its not even the innermost parentheses sometimes.
Can you give me an example of a code which doesn't work as someone would expect?
by Apemant
Tue Dec 11, 2007 9:36 am
Forum: Modding Reference
Topic: function list
Replies: 349
Views: 139713

just making sure the project keeps on moving 8) Good work 8) But may I suggest another field right after the 'Name'? That would be 'Syntax' so that you don't need to go down to the example to get a quick reference on the syntax. It would be just 'name' followed by arguments, such as Name: objJumpTo...
by Apemant
Tue Dec 11, 2007 9:29 am
Forum: Modding Reference
Topic: Planetary "systems"
Replies: 15
Views: 12000

Ttech wrote:Well, maybe check how the Heratic gate works. Beause ut does not hsow the "Explosion"
Which gate, the game ending one? I'm not even sure it doesn't display the effect, and even if it doesn't, it's probably precisely because it's the game ending gate. Can't really use that, now can I? :twisted:
by Apemant
Tue Dec 11, 2007 9:27 am
Forum: Modding Reference
Topic: code examples
Replies: 35
Views: 21486

can someone explain order of operations for the script? I am not exactly clear on that for functional lang. :oops: How do you mean order of operations? Like in 'operator priority'? There's no such thing here, it always evaluates left to right, and since it's prefix notation and not infix, priority ...