You won't believe it, but it's true!
For me tB is more than just the current being. It's a universe and without any movement evolution is on cessation!
Lately I almost thought I discovered life out there.
If only that signal would re-appear...at least a small beep...
Scientists say it came from near Milano
Last edited by ReneMiner; 30-04-2014 at 18:16.
I think there are missing some Forum-sections as beta-testing and support
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
...
must have been some fata morgana
Last edited by ReneMiner; 04-05-2014 at 18:04.
I think there are missing some Forum-sections as beta-testing and support
There can be fun at the cementery - do not underestimate the power of squirrels!
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
I'm just so sad that I can not continue to develop my current project- and I fear the worst (= have to dump or shelve it like a dozen other projects). But its like I can do the half of it in a clean way and the other half in an "unclean" way. It hurts to do it the unclean way because I want to be an outstanding shining example- but.. I want it to be alive and useful... ... I'm already looking out for alternative languages but it would make me sad to drop tB
Last edited by ReneMiner; 08-05-2014 at 00:56.
I think there are missing some Forum-sections as beta-testing and support
Which features are the most critical for you at the moment, Rene?
Petr
Last edited by Petr Schreiber; 08-05-2014 at 00:17.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Simply the calling of a type function at a pointed position instead of a variables position, look there-> look here
Last edited by ReneMiner; 08-05-2014 at 10:22.
I think there are missing some Forum-sections as beta-testing and support
Hi Rene,
sorry for the delay but I had few problems.
I started to look into your request.
The method you suggested here is very clever, you mainly have discovered alone how thinBasic internally works.
As you already suggested, there is a gap because you need to indicate inside a method (UDT function) a global variable ("BY" global variable) and this is not good:
In general what you asked is something I can develop but I need to find a clever syntax.Function t_myType.AddUp(Optional ByVal C As Long) As Long ' have to add this to every type-function currently: If By.pData Then ' # # # # # # # # # # # # # # # # # # # # # # # # Local Me Like By.sType At By.pData ' << << << ' # # # # # # # # # # # # # # # # # # # # # # # # By.pData = 0 EndIf '- - - - - - - - - ' now the function: Return Me.A + Me.B + C End Function
ME pseudo variable is the main problem. It is automatically created/allocated by thinBasic engine as a pointer to the calling UDT variable when a method (UDT function) is invoked and this is possible only because thinBasic knows the UDT variable been used to invoke the method.
I will let you know.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Hi Eros, nice to hear from you again
The Like-Way for the "Dim Me ...At" was just an abstract way but into the other direction :
the functions name is (until dot) equal to the types name... the function is anyway part of the type.
if the function is really part of an udt and there were some internal ME-structure for any type-function - how can one use that anyway existing pattern on some pointer instead of a variable?
The problem of the logical way ( call a function which creates the overlay as t_Type locally and then calls the t_Type.sFunction ) were, that this delegating-function could not handle over the passed paramaters nor pass back the result, neither could compose the type-functions name with that local overlay-variables name, see illustration below.
how can one hand-over the original type-functions-parameters or compose the function name?#Pseudo-Code 'assume a delegate-call-function Function Delegate(Byval pData as Dword, Byval sType as String, Byval sFunction as String, [ ByRef original methods parameters ?] ) ' As ??? Local data Like sType At pData Function = data. & sFunction( original methods parameters ) '<< this impossible twice... End Function ' now if I would call some type-function, lets say "AddUp" and has 3 parameters (1,2,3) Delegate pData, sType, "AddUp" (1,2,3) To Result '?
Last edited by ReneMiner; 12-05-2014 at 09:22.
I think there are missing some Forum-sections as beta-testing and support
Bookmarks