Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-08

[FEATURE REQUEST] Dotted package names

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

Hello,

It would be nice if Lazarus could allow to use dotted package names, so we could do something like:

MyPackage.Base.lpk
MyPackage.Core.lpk
MyPackage.DataBase.lpk
MyPackage.VCL.lpk
...

Currently, if you try to use dots on your package name, you may get an error "The package file name "MyPackage.Core" in
"~/MyPackage.Core.lpk" is not a valid Lazarus package name".

Issue: #30467 <http://bugs.freepascal.org/view.php?id=30467>.

Thank you!

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160812/79224b12/attachment.html>

Reply by email

Sven Barth
to silvioprog
"silvioprog" wrote
Hello, It would be nice if Lazarus could allow to use dotted package names, so

we could do something like:

Show quoted text 8 lines
MyPackage.Base.lpk MyPackage.Core.lpk MyPackage.DataBase.lpk MyPackage.VCL.lpk ... Currently, if you try to use dots on your package name, you may get an

error "The package file name "MyPackage.Core" in

"~/MyPackage.Core.lpk" is not a valid Lazarus package name". Issue: #30467.

Sidenote: Dynamic packages will support dotted names as well. Currently I'm trying to get the package rtl.objpas to link ;)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160812/bc995871/attachment-0001.html>

Reply by email

Sven Barth
to silvioprog
"silvioprog" wrote
On Fri, Aug 12, 2016 at 5:19 PM, Sven Barth
[...] > > Sidenote: Dynamic packages will support dotted names as well. Currently

I'm trying to get the package rtl.objpas to link ;)

Forgive my ignorance, but, what are Dynamic packages? ^^'

The possibility to share binary code among multiple programs by placing it in libraries that also contain a bit of compiler magic. They'll also allow Lazarus to dynamically load components (without recompiling) or for anyone to easily have a plugin system cause you can share strings, classes, etc. without any problems between the "libraries" and the main program. In Delphi you might recognize them from their bpl extension (in FPC it will be ppl).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160813/9dac40a4/attachment.html>

Reply by email

Sven Barth
to Maciej Izak
"Maciej Izak" wrote 8 lines
2016-08-13 9:18 GMT+02:00 Sven Barth : > > (in FPC it will be ppl) ppl - Pascal Package Library ? ;)

Yupp, it's simple and recognizeable :)
The metadata file for it (in Delphi dcp) will surprisingly be called pcp and I personally use ppk for the main package file (in Delphi dpk and in Lazarus lpk; though the latter can keep using that for its own packages *shrugs*).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160813/bb28f1dc/attachment.html>

Reply by email

silvioprog
to Sven Barth: I'm trying to get the package rtl.objpas to link ;) The possibility to share binary code…
Sven Barth wrote 22 lines
Am 12.08.2016 23:34 schrieb "silvioprog" : > > On Fri, Aug 12, 2016 at 5:19 PM, Sven Barth wrote: > [...] >> >> Sidenote: Dynamic packages will support dotted names as well. Currently I'm trying to get the package rtl.objpas to link ;) > > Forgive my ignorance, but, what are Dynamic packages? ^^' The possibility to share binary code among multiple programs by placing it in libraries that also contain a bit of compiler magic. They'll also allow Lazarus to dynamically load components (without recompiling) or for anyone to easily have a plugin system cause you can share strings, classes, etc. without any problems between the "libraries" and the main program. In Delphi you might recognize them from their bpl extension (in FPC it will be ppl). Regards, Sven

It will be really a big feature: modularization in Free Pascal. *-*

Thank you for share it!

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160813/52ad4b6a/attachment.html>

Reply by email