Page 3 of 3
Posted: Wed Mar 21, 2007 10:08 pm
by Kaeru Gaman
musicandstamps wrote:Or am i missing the point

indeed.
Posted: Wed Mar 21, 2007 10:44 pm
by ts-soft
>> Or am i missing the point
toolhelp in the ide
contexthelp with F1
unused functions not in the exe
userlib has own global variabel scope
private functions in userlib
and many more

Posted: Thu Mar 22, 2007 12:27 am
by musicandstamps
Oh well
I will get there in the end

Posted: Thu Mar 22, 2007 12:47 am
by PB
> Or am i missing the point
Yes, because all uncalled procedures in that big include file will be compiled
into your app, making it bloated when there's no need. That's why many of
us want uncalled procedures NOT to be included in the compiled executable.
Posted: Thu Mar 22, 2007 10:29 am
by Kale
PB wrote:> Or am i missing the point
Yes, because all uncalled procedures in that big include file will be compiled
into your app, making it bloated when there's no need. That's why many of
us want uncalled procedures NOT to be included in the compiled executable.
I thought there were tests done and only a stub was included for uncalled procedures not the whole code?
Posted: Thu Mar 22, 2007 11:13 am
by PB
> I thought there were tests done and only a stub was included for uncalled
> procedures not the whole code?
Maybe not entire code, but strings and API calls are still included, even if
the procedures aren't called anywhere. My own tests confirmed that. In
an ideal PureBasic, none would be included at all.
Posted: Thu Mar 22, 2007 12:18 pm
by srod
PB wrote:> I thought there were tests done and only a stub was included for uncalled
> procedures not the whole code?
Maybe not entire code, but strings and API calls are still included, even if
the procedures aren't called anywhere. My own tests confirmed that. In
an ideal PureBasic, none would be included at all.
Definitely not the entire code - as established in the thread:
http://www.purebasic.fr/english/viewtop ... ht=include
However, all procedures referenced from other procedures (even if the 'parent' proc is not called) get included in the final exe. Same with api calls etc. For simplicity's sake I guess, bearing in mind that PB is a single pass compiler.
Posted: Thu Mar 22, 2007 1:50 pm
by Kaeru Gaman
srod wrote:However, all procedures referenced from other procedures (even if the 'parent' proc is not called) get included in the final exe.
and that's one of the points.
if I have a little Include with standalone procedures, everything is fine.
if I have a complex structure with a handfull of control-procedures called
from outside and dozends of internal procedures I will have almost the
complede Include included even if it is not used at all.
and the other point still remains:
what if I want to offer the Functionallity of my code to the Community, but not the Code itself?
and what if I additionally don't want to give away a DLL?
then I need to provide a UserLib, or keep that Functionallity for my own.
Posted: Fri Mar 23, 2007 6:07 am
by fsw
Posted: Fri Mar 23, 2007 6:25 am
by Kaeru Gaman
Kale wrote:Kaeru Gaman wrote:yo hey, do you think I search the forum for 4 year old threads everytime some topic occurs?
Perhaps everybody should!
I can't see the point with that old threads, because so much has changed in the meantime.
in 2001 you were programming in PB 2.00 - 2.70
and the point mentioned in the 2001 thread no.3380 was some totally different:
there was asked "why not write Libs in PB"
2003's thread was about LibMania - ok
I'd like to guide us back to topic:
Some (most?) of us think, a build-in LibCreator would be a good feature.
srod mentioned the Threadsafe/Unicode problem with Libs,
I think that is a point worth being discussed further.
Posted: Fri Mar 23, 2007 6:45 am
by Brice Manuel
and the other point still remains:
what if I want to offer the Functionallity of my code to the Community, but not the Code itself?
and what if I additionally don't want to give away a DLL?
then I need to provide a UserLib, or keep that Functionallity for my own.
I agree and this feature should be built in as it is with ebasic.
However, In the past I offered to share a 2D GUI I was working on and release it as a lib and I was flamed for my efforts by people demanding code and not a lib.
Still, this is a feature I would use, as I would use libs I create for my own use and not share them.
Posted: Fri Mar 23, 2007 7:23 am
by Kaeru Gaman
Brice Manuel wrote:... I was flamed for my efforts by people demanding code and not a lib.
sure one can learn more from an OpenSource-Lib than from a ClosedSouce-Lib.
but after all it is your own decision how to publish it.
those who complain shout be aware, that providing code will always lead
to someone using your code and claiming it their own.
sure this is something to think about
- help others more to learn and accept your code will be misused
- or just provide functionallity and stand some complaints
you can't make it nice for everybody, and if you try too hard, they'll nail you to a tree someday....
Posted: Fri Mar 23, 2007 2:42 pm
by ts-soft
For PBOSL all Sources avalaible, but the most users only download the binaries.
Creating Libs in PB is a missing feature!
You can create your own libs in Delphi, XProfan, EBasic and so on, why not in PB?
Posted: Fri Mar 23, 2007 2:58 pm
by nco2k
i second the request.
c ya,
nco2k
Posted: Fri Mar 23, 2007 3:45 pm
by Droopy
I want an option to compile to UserLib too