PyHP_pph icon indicating copy to clipboard operation
PyHP_pph copied to clipboard

Modules

Open ghost opened this issue 8 years ago • 2 comments

We should have a module system, so programmers can use libraries. I propose using a mixture of Python's and C++'s approaches:

From Python:

import MyMath;

MyMath.MySin(MyMath.MyPi);

And from C++:

//#* MyMath.pyph_pph_h - MyMath module header

Float MyPi = 3.141592;

Float MySin(Float x);

ghost avatar Jul 04 '17 15:07 ghost

I propose we do have modules, but in the vein of PHP's global namespace we have none included by default.

Kampfkarren avatar Jul 04 '17 17:07 Kampfkarren

Agreed.

ghost avatar Jul 04 '17 18:07 ghost