Results 1 to 14 of 14

Thread: New bolded words?

  1. #1
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default New bolded words?

    I know that they aren't new, but it might have drawn attention from some people.

    I have a little list of words that are bolded in SCAR that I don't really understand.

    If anyone could explain the uses of the following words to me, as well as an example, I'd appreciate it.

    SCAR Code:
    final
    on
    out
    virtual

    I know that there is an example of Out somewhere, but I didn't really understand how to use it from the thread, so I figured I would ask around here, hoping for some help.

    Thanks in advance
    -Garrett

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

  3. #3
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    I'm not sure, but I believe final is for Delphi class heritage. If you apply it to a method, it cannot be overridden in a subclass.

    Out explained.
    I don't think you can use the others in SCAR.

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    I'm not sure, but I believe final is for Delphi class heritage. If you apply it to a method, it cannot be overridden in a subclass.

    Out explained.
    I don't think you can use the others in SCAR.
    Considering that Virtual and Final only apply to inheritance issues, and there IS no inheritance in SCAR, as it uses Pascal, which is a procedural language rather than an object-oriented one, I'm sure you can't use them. Also, you can't use on (I just tried and it gives an unknown identifier error).

    So, yeah, you're right. Out is the only one SCAR can use.

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Uhh. Why are they even bolded then?

    And I still need to be explained out. I read the thread already Niels, I still dont really know what you would actually use it for.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by 3Garrett3 View Post
    Uhh. Why are they even bolded then?
    I assume it has something to do with the fact that it uses Pascal Script as the engine.

  7. #7
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    I assume it has something to do with the fact that it uses Pascal Script as the engine.
    I thought that you just said that Pascal can't even use them?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  8. #8
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by 3Garrett3 View Post
    I thought that you just said that Pascal can't even use them?
    Pascal can't. Pascal Script is something different.

  9. #9
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Final is used in classes to designate a class which can't be inherited any further.
    I made a new script, check it out!.

  10. #10
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    They are bolded because SCAR uses a highlighting component which is designed for Pascal/Delphi. When SCAR starts to use the new (sponsored) highlighter, it should be easier to adjust.

    And I can't really explain the out keyword better. You just use it if you want more than 1 "result" in a function (or procedure).

  11. #11
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    And I can't really explain the out keyword better. You just use it if you want more than 1 "result" in a function (or procedure).
    That worked better. I couldn't really figure out how to use it before, but now it makes sense.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  12. #12
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    The highlighting component is unrelated to the script engine, it highlights generic pascal code... Also, final was only introduced to Delphi in version 2002 as a sidenote, Delphi 7 and older don't support it.

  13. #13
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    In addition to fat letters:

    shr and shl ?


  14. #14
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Laur€ns View Post
    In addition to fat letters:

    shr and shl ?
    shift right and shift l aren't new.
    :-)

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
  •