Well functions have been developed, which should be all you need.
i know this has been discussed before, but i think i found a 'hack' to get around high CPU requirements. if E2 used labels, it could simulate object orientation, especially if it returned to the previous spot in the code if E2 encountered a command; for example:
in this case, the first lines of code before a label would be like the main function in c++ or java and every label would be like a function. the only problem i could see is looping via functions causing a lot of CPU and memory issues because a number variable would be needed to store where it last was. a way around the memory issue is to not have a return command but to have a goto at the end like:Code:code goto label1 more code :label 1 code return or something like that
i'm not entirely sure how E2 works, but since its reading from a text file, it should be able to jump lines. it can be implemented by using the registerOperator() function like how inc is used.Code::main code goto label1 more code :label 1 code goto main
any thoughts?
Well functions have been developed, which should be all you need.
this is for jumping around within an expression, not calling functions
Well I don't think that that would be easy due to the way E2 runs. And I still think that functions cover your needs for this. I mean, I wouldn't mind a jmp, but we already have call/returns (functions)
The E2 is a Micro Processor, not a programming language !![]()
No, its a vm running a scripting language. Micro Processors cant fling objects magically. :P
Jumping from label to label isn't object orientation, E2 is already somewhat object oriented. But using labels isn't really feasible due to the way it runs. And with functions its kind of pointless.
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
unless something changed without the wiki updating, you cant make a function using e2, you have to add it onto e2 with lua
ahh so it is old news, just for the wrong reason XD this helps a ton thx
Bookmarks