Liberty BASIC Community Forum
« Shared library syntax »

Welcome Guest. Please Login or Register.
Jul 26th, 2017, 05:54am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Shared library syntax  (Read 221 times)
Geek
Junior Member
ImageImage


member is offline

Avatar

Code to kill bugs!


PM

Gender: Male
Posts: 79
xx Shared library syntax
« Thread started on: Jun 16th, 2013, 10:43am »

Hello! Currently LB is windows only, in windows DLL is at least most standard shared library (probably only?) so use of .dll don't harm. But as LB is trying to support Mac and Linux too who uses .dylib and .so shared libraries I think we should remove the use of extension of shared library.

And on syntax:

Quote:
for dll as #handle


This should be changed to 'for lib as #handle'. I think use of lib is better then something like sharedlib, sharedobj, etc. lib is short or good. who knows in future LB supports static linking so we have a good syntax in advance lol.

But nonetheless to support legacy syntax at least at windows old way should be supported but warning should be given and told from next major update it wouldn't be supported.

What do you think about it?
User IP Logged

CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2830
xx Re: Shared library syntax
« Reply #1 on: Jun 16th, 2013, 9:20pm »

I think we will continue to support the DLL keyword as a valid part of LB syntax. We will add a generic keyword as you suggest.

-Carl
on Jun 16th, 2013, 10:43am, Geek wrote:
Hello! Currently LB is windows only, in windows DLL is at least most standard shared library (probably only?) so use of .dll don't harm. But as LB is trying to support Mac and Linux too who uses .dylib and .so shared libraries I think we should remove the use of extension of shared library.

And on syntax:



This should be changed to 'for lib as #handle'. I think use of lib is better then something like sharedlib, sharedobj, etc. lib is short or good. who knows in future LB supports static linking so we have a good syntax in advance lol.

But nonetheless to support legacy syntax at least at windows old way should be supported but warning should be given and told from next major update it wouldn't be supported.

What do you think about it?
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Geek
Junior Member
ImageImage


member is offline

Avatar

Code to kill bugs!


PM

Gender: Male
Posts: 79
xx Re: Shared library syntax
« Reply #2 on: Jun 17th, 2013, 9:36pm »

on Jun 16th, 2013, 9:20pm, CarlGundel wrote:
I think we will continue to support the DLL keyword as a valid part of LB syntax. We will add a generic keyword as you suggest.

-Carl


That''s great smiley
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls