-=:: FBSL ::=-

(C)2001-2010 by Gerome GUILLEMIN, Mehdi BOUAZIZ and Mike LOBANOVSKY
It is currently Thu Sep 09, 2010 12:31 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: a advice
PostPosted: Tue Dec 29, 2009 6:12 pm 
Offline
FBSL tiny seed
FBSL tiny seed

Joined: Tue Dec 29, 2009 5:54 pm
Posts: 4
As most of them are the same appreciation for FBSL
I am also very fond of FBSL

I think that the scripting language is very important to communicate with program
Is necessary to increase the function of mapping function



Like this:

MapFunc(“Function Msgbox(MsgStr as string) as long”,AddressOf(MyMsgbox))


Script:

Msgbox("Call functions for EXE")




Even the authors can think and learn AngelScript added directly class members

Oh,sorry,My English is poor
Hope that we can understand
I want to say that many people in China are very interested in FBSL
It is really strong


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 29, 2009 6:18 pm 
Offline
FBSL tiny seed
FBSL tiny seed

Joined: Tue Dec 29, 2009 5:54 pm
Posts: 4
My E-mail:xywhsoft@qq.com

O(∩_∩)O~


Top
 Profile  
 
 Post subject: Re: a advice
PostPosted: Wed Dec 30, 2009 1:16 am 
Offline
FBSL Administrator
FBSL Administrator
User avatar

Joined: Tue Apr 19, 2005 7:22 am
Posts: 890
FormChina wrote:
...
Is necessary to increase the function of mapping function
Like this:
MapFunc(“Function Msgbox(MsgStr as string) as long”,AddressOf(MyMsgbox))
Script:
Msgbox("Call functions for EXE")
...


Thank you for the appreciation of FBSL.

Still I must point out that FBSL was not designed just to randomly replicate the constructs used in other languages (AngelScript or Lua or whichever else can be found in the web). In very many cases, FBSL provides its own means to produce the same effect. In fact, in many cases you have not just one choice but rather a variety of choices, and this is why it is called a "freestyle" language.

For example, if you have your own user function and you want to use it instead of FBSL's standard function, you just override the standard function by assigning its name to your own function, e.g.
Code:
Function MsgBox(MsgStr As String) As Integer
  Dim whatever As Integer
...
(you code goes here)
...
  Return whatever
End Function

and you may use it throughout your code instead of the standard MsgBox function without any additional mapping. This method is called "overriding".

Please note that FBSL doesn't recognize any VB-like "Long"'s -- FBSL's "Integer" is an equivalent to a VB "Long". Besides, FBSL's valid syntax for AddressOf is "AddressOf SomeFunction" without any brackets or braces or whatever. Also, you can't use back/forward-slashed quotes (...) in your code -- you'll get an error message. You are supposed to use straight quotes ("...") only.

Secondly, if you have your own user function "Function MyMsgbox(MsgStr As String) As Integer" and for some reason you don't like the name "MyMsgbox" any more, you may redefine it like this:
Code:
#Define MsgBox MyMsgbox

and the FBSL preprocessor will make all the necessary substitutions for you.

Thirdly, you may use the "Macro" definition like this:
Code:
Macro MsgBox(MsgStr) = MyMsgbox(MsgStr)

to exactly the same effect.

Thus, FBSL already provides at least three ways to achive the result you are advocating.

As a co-author of FBSL, I don't see any reason why I should add a fourth way to do the same.

_________________
Mike
(2.2GHz Intel Core2 Duo w/ 4GB RAM, GeForce 8600 w/ 1GB VRAM, Windows XP Pro Russian Sp3)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 30, 2009 1:25 am 
Offline
FBSL Administrator
FBSL Administrator
User avatar

Joined: Tue Apr 19, 2005 7:22 am
Posts: 890
FormChina wrote:
My E-mail:xywhsoft@qq.com


Perhaps you should add this information to your personal profile section -- in this way it will not get lost if this message is deleted. Personal profile overviews are accessible to everybody who surfs the forum.

_________________
Mike
(2.2GHz Intel Core2 Duo w/ 4GB RAM, GeForce 8600 w/ 1GB VRAM, Windows XP Pro Russian Sp3)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 30, 2009 1:40 am 
Offline
FBSL Administrator
FBSL Administrator
User avatar

Joined: Tue Apr 19, 2005 7:22 am
Posts: 890
FormChina wrote:
a advice


Any further discussions about the possibility of adding new features to the FBSL language should go into the "Feature Requests (Request a new feature in FBSL)" section of the forum.

_________________
Mike
(2.2GHz Intel Core2 Duo w/ 4GB RAM, GeForce 8600 w/ 1GB VRAM, Windows XP Pro Russian Sp3)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 30, 2009 11:21 am 
Offline
FBSL tiny seed
FBSL tiny seed

Joined: Tue Dec 29, 2009 5:54 pm
Posts: 4
oh
thank you~!
thank you~!

In fact, I would like to note there are other programs on the side with FBSL binding modules.

The fact is that I am still learning FBSL and FreeBasic.
This is the real Basic

Once again, thank you.



As China's habits,Not be very likely to be understood in the forum,I hope you the guide

oh,thank you,thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 31, 2009 7:15 pm 
Offline
FBSL Administrator
FBSL Administrator
User avatar

Joined: Tue Apr 19, 2005 7:22 am
Posts: 890
You are welcome, and I wish you success with both FBSL and FreeBasic. :)

_________________
Mike
(2.2GHz Intel Core2 Duo w/ 4GB RAM, GeForce 8600 w/ 1GB VRAM, Windows XP Pro Russian Sp3)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 01, 2010 7:52 pm 
Offline
FBSL geek
FBSL geek
User avatar

Joined: Sun Oct 29, 2006 3:22 pm
Posts: 284
Location: France (Nord)
Welcome to you, FromChina and ... Happy new year (early wish with regard to the chinese new year).

You'll appreciate FBSL, the easiest and most flexible script language, hence its name:
F for 'freestyle' but also for 'fastest',
B for BASIC (Beginner's All-purpose Symbolic Instruction Code), so more than basic, for beginners but not only,
S for 'script' or 'super' (programing)
Language.

:D

_________________
> B e r t r a n d <


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group