Quote:
Originally Posted by Chompy
You'd have to join that class to use it's content.
Lets say this is a class called fibonacci:
PHP Code:
function fib(n) {
return (((1+5^0.5)/2)^n - ((1-5^0.5)/2)^n)/(5^0.5)
}
To use that function, I would have to do:
PHP Code:
function onCreated() {
join("fibonacci");
echo(fib(7)); // 13
}
|
Ok, so if I take all my functions from my base system script, and make the classes all functions, I can just go through and replace all the functions listed in the script with:
PHP Code:
function onCreated() {
join("class_name");
}
Is that right? What is the echo? And will GS1 and GS2 mix? It seems like they mix, but only that GS2 doesn't work offline.. is that right?