Results 1 to 5 of 5

Thread: Lape

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question Lape

    I've heared about this around the forums, and I have a few questions:
    1: What exactly is LAPE? A new language?
    2: If it is a new language, how different is it from pascalscript?
    3: What will the transition be like? All pascalscripts moved to outdated? Slow transitition like reflection - color? Or will both exist?

    Thanks in advance!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    A few things will be different. But lape is already implemented into simba. Just set the interpreter to lape.

    script -> interpreter -> lape

    Srl doesn't work with lape, so there is a srl-lape version.
    Working on: Tithe Farmer

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    It's actually the same as what we have now.. Slight difference in syntax, can be made case sensitive if you like..

    Pointers are allowed. Infact, I'm currently experimenting with it too. It's basically full blown pascal backend rather than pascal script. You have more data types, etc.

    Thus sometimes there can be byte problems, etc.. but aside from that, you can literally do what you currently do + more.


    Example you can do:

    Simba Code:
    {$loadlib GLHook}

    type Compass = record
      Found: Boolean;
      VertexCount: Integer;
      VX, VY: Array [0..4] Of Single;
      DegreeAngle: Single;
      RadianAngle: Single;
    end;

    type pComp = ^Compass;

    var
      Ptr: Pointer;
      Comp: pComp;

    begin
      ClearDebug;

      Ptr := GLHTest;
      PComp := Ptr;
      writeln(PComp^.VertexCount);
    end.

    That's pointer arithmentics there inorder to access a class via a pointer to it. Where type Pointer = void*.

    Now that's a bit complicated for an explanation but you don't have to actually use that. It's the same as what you currently use.

    Just an example.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    It's actually the same as what we have now.. Slight difference in syntax, can be made case sensitive if you like..

    Pointers are allowed. Infact, I'm currently experimenting with it too. It's basically full blown pascal backend rather than pascal script. You have more data types, etc.

    Thus sometimes there can be byte problems, etc.. but aside from that, you can literally do what you currently do + more.


    Example you can do:

    Simba Code:
    {$loadlib GLHook}

    type Compass = record
      Found: Boolean;
      VertexCount: Integer;
      VX, VY: Array [0..4] Of Single;
      DegreeAngle: Single;
      RadianAngle: Single;
    end;

    type pComp = ^Compass;

    var
      Ptr: Pointer;
      Comp: pComp;

    begin
      ClearDebug;

      Ptr := GLHTest;
      PComp := Ptr;
      writeln(PComp^.VertexCount);
    end.

    That's pointer arithmentics there inorder to access a class via a pointer to it. Where type Pointer = void*.

    Now that's a bit complicated for an explanation but you don't have to actually use that. It's the same as what you currently use.

    Just an example.
    Thanks for the informative post! I think I understand most of it.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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