![]() |
Quote:
Quote:
|
That feature would be cool, I vote yes.
|
Quote:
|
Quote:
So what do you say on the feature :emote_thumbup: EDIT: Maybe some extending of methods? Well, I haven't seen a way to do it yet. ![]() struct int method inHalf takes nothing returns string return SubString(this, 0, (StringLength(this)/2)) endmethod method toString takes nothing returns string return I2S(this) endmethod endstruct function testing takes nothing returns nothing local int i = 345344 call i.toString().inHalf() endfunction |
Hah! I've found it.....http://www.wc3c.net/showpost.php?p=1...postcount=1214
this, just without variables! Greez |
Quote:
|
![]() struct evil method operator evilop takes nothing returns real return .evilop endmethod endstruct |
So what? It is just your normal never-stopping self recursion.
|
i think a decent compiler shouldnt not let a never-ending recursion compile obviously, such a thing doesnt make sense anyway (hitop, unless you use TSA).
couldnt you just check if there is another return in the function which doesnt return the function itself ? But well if you like it, .... I like it aswell, it looks like fun ;) |
Quote:
JASS Helper isn't really a validating compiler. It does a best-effort to compile, then dies if it can't. Thus why PJASS is called after compilation. Also, "shouldnt not" is just plain wrong. In more than one way. |
well ... that happens when you edit posts, and dont double check it afterwards ;(
Then let the inifinite recursion exist ...its fun |
Quote:
![]() function err takes nothing returns nothing return err() endfunction |
Quote:
fixed: I think a decent coder should never write code that enters never-ending loops. Such a thing doesn't make sense anyways. |
...
have you thought of parsing blizzard.j and automatically inlining BJs ? (well...the one-line ones)... I dont need it, and i am not sure if its good anyway, ...but it might save some work for people who convert old gui stuff to jass... |
The optimizer already does it, so not really, though I guess that once it parses blizzard.j inlining bjs would be a side effect.
|
All times are GMT. The time now is 08:28 AM. |
Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services