SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    Tom and John's answers are perfect. There's no catch, it was a simple question.


  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Question #1

    A) What SilkTest method or function has an inout parameter?

    B) Post original 4-test code showing inout in use.


  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    ListSort

    [-] list of string lsSample ={...}
    [ ] "z"
    [ ] "d"
    [ ] "a"
    [ ] listsort(lsSample)
    [ ] listprint(lsSample)


    ------------------
    Tom
    Tom

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    Absolutely right. But, can you write a new function that uses the keyword?




  5. #5
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    A. Mostly List and Array commands. Hey, I did what any good tester would do; I cheated.

    Open Silk help, enter "inout" in the Find tab then take your pick.

    B. Copy/paste from A above.


    John


    ------------------

  6. #6
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    main()
    {
    string a = "old a" ;
    new_function(a) ;
    Print(a) ;
    }

    new_function(inout string a)
    {
    a = "new a" ;
    }

    OK, what's the catch?

    John


    ------------------

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple Question #1

    How is this...

    [-] main()
    [ ]
    [ ] string sAnswer
    [ ] sAnswer = "good_answer"
    [ ] JohnGreen(sAnswer)
    [ ] print(sAnswer)
    [ ]
    [ ]
    [-] void JohnGreen(inout string s)
    [ ]
    [ ] s = "wrong"
    [ ]

    sorry - forgot the smiley on the original post


    ------------------
    Tom

    [This message has been edited by tmason (edited 06-17-2002).]
    Tom

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:06 PM.

Copyright BetaSoft Inc.