Crazyinfin8
Crazyinfin8
> > > If you ignore overflows, try `6.631236871469758276785396630275967243399099947355303144249971758736286630139265439618068200788048744105960420552601852889715006376325666595539603330361800519107591783233358492337208057849499360899425128640718856616503093444922854759159988160304439909868291973931426625698663157749836252274523485312442358651207051292453083278116143932569727918709786004497872322193856150225415211997283078496319412124640111777216148110752815101775295719811974338451936095907419622417538473679495148632480391435931767981122396703443803335529756003353209830071832230689201383015598792184172909927924176339315507402234836120730914783168400715462440053817592702766213559042115986763819482654128770595766806872783349146967171293949598850675682115696218943412532098591327667236328125`. I'm not sure I follow what your trying to tell me. This does print `6.6312368714698` on both this version of the...
- The parser is now consolidated into one function `wrenParseNum` in `wren_utils.c`. - Added comments to explain how the parsing works - Added overflow detection (only tested if the exponent...
Possible duplicate of #811 > Should trigger an error/assert in debug mode. ```dart foreign class A { construct new() {} } var a = A.new() ``` 
> > > This change is _too breaking_. It will break _any application that embeds Wren_. While it is breaking, I can see the advantage to api's that cannot create...
> Edit: I agree it is useful, I'm just saying we need to find a less breaking way. If we want a less breaking way, I'm not sure how hard...
I think if it's a class with no fields, wouldn't it be better to use static methods instead? ```js class A { static test() { System.print("Called with 0 args") }...
I don't think there is currently a way to force a running wren script to terminate prematurely. However, in a fork I created, I hacked in a function to exit...
Some time ago, I tried removing our dependency on the standard `strtod` and `strtoll` functions with #984. https://github.com/wren-lang/wren/blob/3f5a16a78e9b82cca93f583b416f2a5a6cecca1d/src/vm/wren_utils.c#L232-L417 It certainly is a very extreme solution to this specific problem but...
> Personally, I'd like to have seen `"1.2suffix"` return `1.2` as it does in several other languages I've used including C itself which saves you having to trim off extraneous...
> Although for various reasons, it was not thought to be worthwhile supporting constants in Wren, one could nevertheless create a sort of 'backdoor' constant using a 1-tuple: > >```wren...