Results 1 to 10 of 10

Thread: How to provide compiler functionality to qtscript

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: How to provide compiler functionality to qtscript

    Okies.. thanks, i understood it means i need to implement complete environment for such checking. directly nothing is available.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to provide compiler functionality to qtscript

    No, it means you cannot possibly do a foulproof check.

    Consider this:
    javascript Code:
    1. function a() { }
    2.  
    3. function b(arg) { print(arg) }
    4.  
    5. a(1,2,3,4)
    6. b()
    To copy to clipboard, switch view to plain text mode 

    The code is correct as far as JavaScript is concerned (try running it and see for yourself). I understand that you'd like to get a "oh, your code is wrong, you messed up function arguments" message but the problem is the code is not wrong, it is a correct working JavaScript snippet.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 4
    Last Post: 19th December 2011, 11:19
  2. Qt Creator Parse compiler errors of a non gcc compiler
    By kiozen in forum Qt Tools
    Replies: 4
    Last Post: 4th July 2011, 01:34
  3. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  4. Replies: 0
    Last Post: 25th November 2009, 07:46
  5. Is webkit functionality a superset of qtscript?
    By jurojon in forum Qt Programming
    Replies: 5
    Last Post: 17th October 2008, 23:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.