[Gambas-user] Creating a library....

Tobias Boege taboege at gmail.com
Sun Jun 10 20:05:52 CEST 2018


On Sun, 10 Jun 2018, T Lee Davidson wrote:
> As I understand it, for final deployment, you should not have a Main module _and_ a library module.  The Main module should be
> your library. For testing, create a new project that uses the compiled library.
> 

I'm not sure if I subscribe to that, even though I've never formally written
a library, only components. Try running the gb.form component (yes, you read
that right):

  $ /usr/lib/gambas3/gb.form.gambas

Even though it is an official component, which is as deployed as it gets,
it still contains a test class as its startup class. If the .gambas file
is used like a component, it doesn't matter what its startup class is;
only the exported classes matter.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk


More information about the User mailing list