+ Reply to Thread
Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 75
Like Tree30Likes

Thread: E2 Scopes

  1. #41
    Wirererer Rusketh's Avatar
    Join Date
    Jul 2011
    Location
    In your pants.
    Posts
    129

    Default Re: E2 Scopes

    This whole debate is trivial and stupid.
    Can we stop this dumb debate please guys.
    miojox likes this.

    Creator of E2 Function System (udf) and E2 Scope System (Beta)
    STRP Development Blog: Blog.SpaceTownRP.com

  2. #42
    Wirererer Snowden42's Avatar
    Join Date
    May 2009
    Posts
    248

    Default Re: E2 Scopes

    Oh god, this is amazing.
    Quote Originally Posted by Echo51 View Post
    Told many people that myself, I feel nooblishious

  3. #43
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,710
    Blog Entries
    1

    Default Re: E2 Scopes

    I will fight until DEATH.

    Also, I like having debates.

  4. #44
    E2 Addict miojox's Avatar
    Join Date
    Dec 2011
    Location
    São Paulo - SP - Brazil
    Posts
    135

    Default Re: E2 Scopes

    Quote Originally Posted by Drunkie View Post
    I will fight until DEATH.

    Also, I like having debates.
    I prefer having dinner... Can we debate this over dinner? Although I'm not having dinner with you. I don't really like sharing food. Especially with polar bears.
    Quote Originally Posted by God View Post
    That's my boy.

  5. #45
    Wirererer Rusketh's Avatar
    Join Date
    Jul 2011
    Location
    In your pants.
    Posts
    129

    Default Re: E2 Scopes

    Divran has helped me fix the Duplicator bug.
    With that I reckon this is stable can we get some proper testing done?
    I will be back tomorrow, If i can get some bug reports posted I can get them fixed ASAP.

    Creator of E2 Function System (udf) and E2 Scope System (Beta)
    STRP Development Blog: Blog.SpaceTownRP.com

  6. #46
    Wire Amateur Ksax's Avatar
    Join Date
    Aug 2010
    Location
    Behind You
    Posts
    38

    Default Re: E2 Scopes

    How does local variables working with functions exactly?
    like function number test(AThing){AThing*2,return AThing}
    Is variable AThing are local only to function scope?
    Since something bad can happen if it isnt, like.

    AThing=2
    OtherThing=test(AThing)
    print(AThing)

    With local variables 2 should be printed out, but are they local there?

    I might not be clear.

    Are variables which used in functions as arguments to process local to function? And if they change there, won't they change some persistent or temporarily variable

    They seems to be, but questions still out there, i just want a confirmation.
    Also, how long it before it will be committed to official wire?
    I already have it on server tho
    Awesome work.
    E2 engineer.....
    3D is a official part of my art......

  7. #47
    Wirererer Rusketh's Avatar
    Join Date
    Jul 2011
    Location
    In your pants.
    Posts
    129

    Default Re: E2 Scopes

    Well udf's have there own environments.
    They can not access variables defined outside of the function.
    How ever functions do have complete access to the Global Scope and the Persistent Variables as well as Inputs and Ouputs of course.

    Creator of E2 Function System (udf) and E2 Scope System (Beta)
    STRP Development Blog: Blog.SpaceTownRP.com

  8. #48
    Wire Amateur Ksax's Avatar
    Join Date
    Aug 2010
    Location
    Behind You
    Posts
    38

    Default Re: E2 Scopes

    PHP Code:
    function number test(){
    Test=1
    if(Test){
    return 
    1
    }
    else{
    return 
    0   
    }   
    }

    print(
    test():toString()) 

    This code will return nill.
    I think it is error with scopes, because if return outside if or else it will return something, otherwise it is nill.
    Please fix it, it was driving me nuts, because i was trying to find error in my code.
    E2 engineer.....
    3D is a official part of my art......

  9. #49
    Wirererer Rusketh's Avatar
    Join Date
    Jul 2011
    Location
    In your pants.
    Posts
    129

    Default Re: E2 Scopes

    Your obviously using an old copy of the patch.
    The patch file has updated about 10 times a day all weak.
    The final rev is done revert your svn and re-download patch.

    If you still have the problem please post the error and the E2.

    Creator of E2 Function System (udf) and E2 Scope System (Beta)
    STRP Development Blog: Blog.SpaceTownRP.com

  10. #50
    Wire Amateur Ksax's Avatar
    Join Date
    Aug 2010
    Location
    Behind You
    Posts
    38

    Default Re: E2 Scopes

    I am pretty sure i have latest, plus this is whole code which gives of a error.
    Just try it, I am pretty sure it will return nill for anyone who uses this new awesome extension.

    I just reinstalled patch, just in case if it have changed in this 20 minutes since i updated it.
    Problem still there. And it didn't go anywhere.

    To see problem for your self use code I provided a post above, this is whole code.
    Please-please fix it.
    Last edited by Ksax; 3 Weeks Ago at 06:52 AM.
    E2 engineer.....
    3D is a official part of my art......

+ Reply to Thread
Page 5 of 8 FirstFirst ... 34567 ... LastLast

Tags for this Thread

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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots