Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Signs of life out there!

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172

    Signs of life out there!

    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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,793
    Rep Power
    10
    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

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172
    ...

    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

  4. #4
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172
    Quote Originally Posted by ErosOlmi View Post
    Here you can find the places where all NOT work-in-progress software lie:

    https://www.google.it/search?hl=it&q...=1918&bih=1019
    In memory of ...
    I think there are missing some Forum-sections as beta-testing and support

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    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

  6. #6
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172
    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

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    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

  8. #8
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172
    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

  9. #9
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,793
    Rep Power
    10
    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:
    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
    
    In general what you asked is something I can develop but I need to find a clever syntax.

    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

  10. #10
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,544
    Rep Power
    172
    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.

    #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 '?
    
    how can one hand-over the original type-functions-parameters or compose the function name?
    Last edited by ReneMiner; 12-05-2014 at 09:22.
    I think there are missing some Forum-sections as beta-testing and support

Page 1 of 3 123 LastLast

Similar Threads

  1. Life 3D alfa
    By RobbeK in forum TBGL General
    Replies: 10
    Last Post: 09-11-2013, 00:22
  2. Signs that you're a bad programmer
    By ErosOlmi in forum Development
    Replies: 5
    Last Post: 04-11-2011, 17:47
  3. Second Life
    By Charles Pegge in forum Shout Box Area
    Replies: 11
    Last Post: 15-02-2011, 00:31
  4. my life with c++
    By kryton9 in forum C / C++
    Replies: 4
    Last Post: 13-06-2010, 05:00
  5. Journey of Life
    By Charles Pegge in forum Shout Box Area
    Replies: 1
    Last Post: 27-03-2010, 00:56

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •