Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
This looks good! Are there going to be other themes? just curious.
One thing I noticed: The example on the main page that illustrate how to use operator overloading is wrong.There is an error on the operator and on the string method. it should be like this:
[/crayon]Monkey12345678910111213141516171819202122232425[crayon-5cba8cd49c5a4615322470 inline="true" ]Struct Vec2Field x:Float,y:FloatMethod New( x:float,y:Float )Self.x=xSelf.y=yEndOperator+:Vec2( v:Vec2 )Return New Vec2( x+v.x,y+v.y )EndMethod ToString:String()Return "Vec2("+x+","+y+")"EndEndFunction Main()Local v0:=New Vec2( 10,20 )Local v1:=New Vec2( 30,40 )Print (v0+v1).ToString()EndI just notice that there is still a problem displaying code at the beginning and at the end.
Great Mark! Thanks.
Ok, Thanks.
I knew about that and thats the way I have it on my program But I was hoping there was a simpler way like BlitzMax.
I didn’t really want to work with pointer indexes. I feel like they are a bit messy.Local i:Int = Key.Space
Local k:Key = Cast<Key>(i)
Print Int(k)Mark can you detail what you did to get Emscripten running on Mac. I am having trouble installing llvm I think I got cmake installed correctly but don’t know for sure.
I don’t know what you modified in the latest update but it finally got ted2go running. Thanks much!
Yay! ****clapping hands****
Thanks Mark.
On my MacBook Air all I get is the green shadow with or without the text.
I installed the newest update but now I can’t run ted2go. I get this error:

I used the ted2go from my previous working version but when I try to run working code in Emscripten I get this error:Mx2cc version 1.1.09
***** Making app ‘/Users/jesse/Desktop/collision.monkey2’ (emscripten debug llvm gcc) *****
Parsing…
Semanting…
Translating…
Compiling…
Linking /Users/jesse/Desktop/collision.products/Emscripten/Collision.js…
Build error: System command failed:em++ -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=[‘Pointer_stringify’] -O2 -s ASSERTIONS=2 –preload-file “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/assets/@/assets” -s BINARYEN=1 -s BINARYEN_TRAP_MODE=’allow’ -o “/Users/jesse/Desktop/collision.products/Emscripten/Collision.js” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2mojo_2mojo.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2std_2std.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2stb_5vorbis_2stb_5vorbis.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2stb_5image_5write_2stb_5image_5write.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2stb_5image_2stb_5image.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2miniz_2miniz.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2sdl2_2sdl2.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2jni_2jni.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2opengl_2opengl.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2openal_2openal.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2libc_2libc.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2freetype_2freetype.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2emscripten_2emscripten.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_2modules_2monkey_2monkey.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/collision_0collision.cpp.o” “/Users/jesse/monkey2/modules/mojo/mojo.buildv1.1.09/emscripten_debug/mojo.a” “/Users/jesse/monkey2/modules/std/std.buildv1.1.09/emscripten_debug/std.a” “/Users/jesse/monkey2/modules/stb-vorbis/stb-vorbis.buildv1.1.09/emscripten_debug/stb-vorbis.a” “/Users/jesse/monkey2/modules/stb-image-write/stb-image-write.buildv1.1.09/emscripten_debug/stb-image-write.a” “/Users/jesse/monkey2/modules/stb-image/stb-image.buildv1.1.09/emscripten_debug/stb-image.a” “/Users/jesse/monkey2/modules/miniz/miniz.buildv1.1.09/emscripten_debug/miniz.a” “/Users/jesse/monkey2/modules/sdl2/sdl2.buildv1.1.09/emscripten_debug/sdl2.a” “/Users/jesse/monkey2/modules/jni/jni.buildv1.1.09/emscripten_debug/jni.a” “/Users/jesse/monkey2/modules/opengl/opengl.buildv1.1.09/emscripten_debug/opengl.a” “/Users/jesse/monkey2/modules/openal/openal.buildv1.1.09/emscripten_debug/openal.a” “/Users/jesse/monkey2/modules/libc/libc.buildv1.1.09/emscripten_debug/libc.a” “/Users/jesse/monkey2/modules/freetype/freetype.buildv1.1.09/emscripten_debug/freetype.a” “/Users/jesse/monkey2/modules/emscripten/emscripten.buildv1.1.09/emscripten_debug/emscripten.a” “/Users/jesse/monkey2/modules/monkey/monkey.buildv1.1.09/emscripten_debug/monkey.a”
Traceback (most recent call last):
File “/Users/jesse/emsdk-portable/emscripten/1.37.27/em++”, line 16, in <module>
emcc.run()
File “/Users/jesse/emsdk-portable/emscripten/1.37.27/emcc.py”, line 912, in run
setattr(shared.Settings, key, eval(value))
File “<string>”, line 1, in <module>
NameError: name ‘Pointer_stringify’ is not defined***** Fatal mx2cc error *****
Internal mx2cc build error
Attachments:
You are not going to like this.
I uploaded the Emscripten(it’s up to 1.37.27 now). from the link you have above and followed the direction to install it, I downloaded the latest Monkey 2 from the repository, build modules etc.. then run Ted2go, updated modules for Emscripten. Everything worked fine. No problems! Until I tried to run a program that runs fine in desktop. then I got this:Compiling…
Linking /Users/jesse/Desktop/collision.products/Emscripten/Collision.js…
Build error: System command failed:em++ -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 -O2 –preload-file “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/assets/@/assets” -s BINARYEN=1 -s BINARYEN_TRAP_MODE= -o “/Users/jesse/Desktop/collision.products/Emscripten/Collision.js” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2mojo_2mojo.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2std_2std.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2stb_5vorbis_2stb_5vorbis.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2stb_5image_5write_2stb_5image_5write.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2stb_5image_2stb_5image.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2miniz_2miniz.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2sdl2_2sdl2.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2jni_2jni.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2opengl_2opengl.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2openal_2openal.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2libc_2libc.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2freetype_2freetype.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2emscripten_2emscripten.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/_1_1_1_1monkey2_5develop_2modules_2monkey_2monkey.buildv1.1.09_2emscripten_0debug_2include_2_0r.cpp_r.o” “/Users/jesse/Desktop/collision.buildv1.1.09/emscripten_debug/build/collision_0collision.cpp.o” “/Users/jesse/monkey2-develop/modules/mojo/mojo.buildv1.1.09/emscripten_debug/mojo.a” “/Users/jesse/monkey2-develop/modules/std/std.buildv1.1.09/emscripten_debug/std.a” “/Users/jesse/monkey2-develop/modules/stb-vorbis/stb-vorbis.buildv1.1.09/emscripten_debug/stb-vorbis.a” “/Users/jesse/monkey2-develop/modules/stb-image-write/stb-image-write.buildv1.1.09/emscripten_debug/stb-image-write.a” “/Users/jesse/monkey2-develop/modules/stb-image/stb-image.buildv1.1.09/emscripten_debug/stb-image.a” “/Users/jesse/monkey2-develop/modules/miniz/miniz.buildv1.1.09/emscripten_debug/miniz.a” “/Users/jesse/monkey2-develop/modules/sdl2/sdl2.buildv1.1.09/emscripten_debug/sdl2.a” “/Users/jesse/monkey2-develop/modules/jni/jni.buildv1.1.09/emscripten_debug/jni.a” “/Users/jesse/monkey2-develop/modules/opengl/opengl.buildv1.1.09/emscripten_debug/opengl.a” “/Users/jesse/monkey2-develop/modules/openal/openal.buildv1.1.09/emscripten_debug/openal.a” “/Users/jesse/monkey2-develop/modules/libc/libc.buildv1.1.09/emscripten_debug/libc.a” “/Users/jesse/monkey2-develop/modules/freetype/freetype.buildv1.1.09/emscripten_debug/freetype.a” “/Users/jesse/monkey2-develop/modules/emscripten/emscripten.buildv1.1.09/emscripten_debug/emscripten.a” “/Users/jesse/monkey2-develop/modules/monkey/monkey.buildv1.1.09/emscripten_debug/monkey.a”
Traceback (most recent call last):
File “/Users/jesse/emsdk-portable/emscripten/1.37.27/em++”, line 16, in <module>
emcc.run()
File “/Users/jesse/emsdk-portable/emscripten/1.37.27/emcc.py”, line 903, in run
if value[0] == ‘@’:
IndexError: string index out of range***** Fatal mx2cc error *****
running OS X Sierra 10.12.6
Bump.
you want it to be an array or a Map?
[/crayon]Monkey123456789101112131415[crayon-5cba8cd4bc99b787232663 inline="true" ]Enum DirectionU, D, L, REndGlobal Controls := New Map<Direction, Key>Function Main()Controls.Add(Direction.U,Key.Up)If Keyboard.KeyDown(Controls.Get(Direction.U))Controls.Update(Direction.U,Key.W)endifEnd Functionif You understand that a Map is a class you will also understand that a map can not be indexed as you did in line 6 of your example which is reserved for arrays.
there are bitwise operators! :
shl – shift left same as – C’s <<
shr – shift right -same as C’s >>
& – and
| – or
~ – xorI think this one is for you Mark.
this is what I came out with:[/crayon]Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237[crayon-5cba8cd4d1da1980290513 inline="true" ]#Import "<std>"Using std..'====================================== TEST ======================================Function Main()Print ""Print "==== MD5 ===="Print MD5("The quick brown fox jumps over the lazy dog")Print "9e107d9d372bb6826bd81d3542a419d6 <- Should be this"Print ""Print "===== SHA-1 ====="Print SHA1("The quick brown fox jumps over the lazy dog")Print "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 <- Should be this"Print ""Print "===== SHA-256 ====="Print SHA256("The quick brown fox jumps over the lazy dog")Print "d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 <- Should be this"End Function''====================================== TEST ======================================Function MD5:String(in:String)Local h0:Int = $67452301, h1:Int = $EFCDAB89, h2:Int = $98BADCFE, h3:Int = $10325476Local r:Int[] = New Int[](7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21)Local k:Int[] = New Int[]($D76AA478, $E8C7B756, $242070DB, $C1BDCEEE, $F57C0FAF, $4787C62A,$A8304613, $FD469501, $698098D8, $8B44F7AF, $FFFF5BB1, $895CD7BE,$6B901122, $FD987193, $A679438E, $49B40821, $F61E2562, $C040B340,$265E5A51, $E9B6C7AA, $D62F105D, $02441453, $D8A1E681, $E7D3FBC8,$21E1CDE6, $C33707D6, $F4D50D87, $455A14ED, $A9E3E905, $FCEFA3F8,$676F02D9, $8D2A4C8A, $FFFA3942, $8771F681, $6D9D6122, $FDE5380C,$A4BEEA44, $4BDECFA9, $F6BB4B60, $BEBFBC70, $289B7EC6, $EAA127FA,$D4EF3085, $04881D05, $D9D4D039, $E6DB99E5, $1FA27CF8, $C4AC5665,$F4292244, $432AFF97, $AB9423A7, $FC93A039, $655B59C3, $8F0CCC92,$FFEFF47D, $85845DD1, $6FA87E4F, $FE2CE6E0, $A3014314, $4E0811A1,$F7537E82, $BD3AF235, $2AD7D2BB, $EB86D391)Local intCount:Int = (((in.Length + 8) Shr 6) + 1) Shl 4Local data:Int[] = New Int[intCount]For Local c:Int=0 Until in.Lengthdata[c Shr 2] = data[c Shr 2] | ((in[c] & $FF) Shl ((c & 3) Shl 3))Nextdata[in.Length Shr 2] = data[in.Length Shr 2] | ($80 Shl ((in.Length & 3) Shl 3))data[data.Length - 2] = (Long(in.Length) * 8) & $FFFFFFFFdata[data.Length - 1] = (Long(in.Length) * 8) Shr 32For Local chunkStart:Int=0 Until intCount Step 16Local a:Int = h0, b:Int = h1, c:Int = h2, d:Int = h3For Local i:Int=0 To 15Local f:Int = d ~ (b & (c ~ d))Local t:Int = dd = c ; c = bb = Rol((a + f + k[i] + data[chunkStart + i]), r[i]) + ba = tNextFor Local i:Int=16 To 31Local f:Int = c ~ (d & (b ~ c))Local t:Int = dd = c ; c = bb = Rol((a + f + k[i] + data[chunkStart + (((5 * i) + 1) & 15)]), r[i]) + ba = tNextFor Local i:Int=32 To 47Local f:Int = b ~ c ~ dLocal t:Int = dd = c ; c = bb = Rol((a + f + k[i] + data[chunkStart + (((3 * i) + 5) & 15)]), r[i]) + ba = tNextFor Local i:Int=48 To 63Local f:Int = c ~ (b | ~d)Local t:Int = dd = cc = bb = Rol((a + f + k[i] + data[chunkStart + ((7 * i) & 15)]), r[i]) + ba = tNexth0 += ah1 += bh2 += ch3 += dNextReturn (LEHex(h0) + LEHex(h1) + LEHex(h2) + LEHex(h3)).ToLower()End FunctionFunction SHA1:String(in:String)Local h0:Int = $67452301, h1:Int = $EFCDAB89, h2:Int = $98BADCFE, h3:Int = $10325476, h4:Int = $C3D2E1F0Local intCount:Int = (((in.Length + 8) Shr 6) + 1) Shl 4Local data:Int[] = New Int[intCount]For Local c:Int=0 Until in.Lengthdata[c Shr 2] = (data[c Shr 2] Shl 8) | (in[c] & $FF)Nextdata[in.Length Shr 2] = ((data[in.Length Shr 2] Shl 8) | $80) Shl ((3 - (in.Length & 3)) Shl 3)data[data.Length - 2] = (Long(in.Length) * 8) Shr 32data[data.Length - 1] = (Long(in.Length) * 8) & $FFFFFFFFFor Local chunkStart:Int=0 Until intCount Step 16Local a:Int = h0, b:Int = h1, c:Int = h2, d:Int = h3, e:Int = h4Local w := data.Slice(chunkStart,chunkStart + 16)w = w.Slice(0,80)For Local i:Int=16 To 79w[i] = Rol(w[i - 3] ~ w[i - 8] ~ w[i - 14] ~ w[i - 16], 1)NextFor Local i:Int=0 To 19Local t:Int = Rol(a, 5) + (d ~ (b & (c ~ d))) + e + $5A827999 + w[i]e = d ; d = cc = Rol(b, 30)b = a ; a = tNextFor Local i:Int=20 To 39Local t:Int = Rol(a, 5) + (b ~ c ~ d) + e + $6ED9EBA1 + w[i]e = d ; d = cc = Rol(b, 30)b = a ; a = tNextFor Local i:Int=40 To 59Local t:Int = Rol(a, 5) + ((b & c) | (d & (b | c))) + e + $8F1BBCDC + w[i]e = d ; d = cc = Rol(b, 30)b = a ; a = tNextFor Local i:Int=60 To 79Local t:Int = Rol(a, 5) + (b ~ c ~ d) + e + $CA62C1D6 + w[i]e = d ; d = cc = Rol(b, 30)b = a ; a = tNexth0 += ah1 += bh2 += ch3 += dh4 += eNextReturn (Hex(h0) + Hex(h1) + Hex(h2) + Hex(h3) + Hex(h4)).ToLower()End FunctionFunction SHA256:String(in:String)Local h0:Int = $6A09E667, h1:Int = $BB67AE85, h2:Int = $3C6EF372, h3:Int = $A54FF53ALocal h4:Int = $510E527F, h5:Int = $9B05688C, h6:Int = $1F83D9AB, h7:Int = $5BE0CD19Local k:Int[] = New Int[]($428A2F98, $71374491, $B5C0FBCF, $E9B5DBA5, $3956C25B, $59F111F1,$923F82A4, $AB1C5ED5, $D807AA98, $12835B01, $243185BE, $550C7DC3,$72BE5D74, $80DEB1FE, $9BDC06A7, $C19BF174, $E49B69C1, $EFBE4786,$0FC19DC6, $240CA1CC, $2DE92C6F, $4A7484AA, $5CB0A9DC, $76F988DA,$983E5152, $A831C66D, $B00327C8, $BF597FC7, $C6E00BF3, $D5A79147,$06CA6351, $14292967, $27B70A85, $2E1B2138, $4D2C6DFC, $53380D13,$650A7354, $766A0ABB, $81C2C92E, $92722C85, $A2BFE8A1, $A81A664B,$C24B8B70, $C76C51A3, $D192E819, $D6990624, $F40E3585, $106AA070,$19A4C116, $1E376C08, $2748774C, $34B0BCB5, $391C0CB3, $4ED8AA4A,$5B9CCA4F, $682E6FF3, $748F82EE, $78A5636F, $84C87814, $8CC70208,$90BEFFFA, $A4506CEB, $BEF9A3F7, $C67178F2)Local intCount:Int = (((in.Length + 8) Shr 6) + 1) Shl 4Local data:Int[] = New Int[intCount]For Local c:Int=0 Until in.Lengthdata[c Shr 2] = (data[c Shr 2] Shl 8) | (in[c] & $FF)Nextdata[in.Length Shr 2] = ((data[in.Length Shr 2] Shl 8) | $80) Shl ((3 - (in.Length & 3)) Shl 3)data[data.Length - 2] = (Long(in.Length) * 8) Shr 32data[data.Length - 1] = (Long(in.Length) * 8) & $FFFFFFFFFor Local chunkStart:Int=0 Until intCount Step 16Local a:Int = h0, b:Int = h1, c:Int = h2, d:Int = h3, e:Int = h4, f:Int = h5, g:Int = h6, h:Int = h7Local w := data.Slice(chunkStart,chunkStart + 16)w = w.Slice(0,64)For Local i:Int=16 To 63w[i] = w[i - 16] + (Ror(w[i - 15], 7) ~ Ror(w[i - 15], 18) ~ (w[i - 15] Shr 3))+w[i - 7] + (Ror(w[i - 2], 17) ~ Ror(w[i - 2], 19) ~ (w[i - 2] Shr 10))NextFor Local i:Int=0 To 63Local t0:Int = (Ror(a, 2) ~ Ror(a, 13) ~ Ror(a, 22)) + ((a & b) | (b & c) | (c & a))Local t1:Int = h + (Ror(e, 6) ~ Ror(e, 11) ~ Ror(e, 25)) + ((e & f) | (~e & g)) + k[i] + w[i]h = g ; g = f ; f = e ; e = d + t1d = c ; c = b ; b = a ; a = t0 + t1Nexth0 += a ; h1 += b ; h2 += c ; h3 += dh4 += e ; h5 += f ; h6 += g ; h7 += hNextReturn (Hex(h0) + Hex(h1) + Hex(h2) + Hex(h3) + Hex(h4) + Hex(h5) + Hex(h6) + Hex(h7)).ToLower()End FunctionFunction Hex:String(val:Int)Return ULongToString(val,16)End FunctionFunction Rol:Int(val:Int, shift:Int)Return (val Shl shift) | (val Shr (32 - shift))End FunctionFunction Ror:Int(val:Int, shift:Int)Return (val Shr shift) | (val Shl (32 - shift))End FunctionFunction LEHex:String(val:Int)Local out:String = Hex(val)Return out.Slice(6,8) + out.Slice(4,6) + out.Slice(2,4) + out.Slice(0,2)End FunctionBut when I run it, I get this error.:
Parsing…
Semanting…
Translating…
Compiling…
Build error: System command failed:g++ -c -std=c++14 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality -I”/Users/jesse/monkey2/modules/” -I”/Users/jesse/monkey2/modules/monkey/native” -I”/Users/jesse/monkey2/tmp/” -DBB_NEWREFLECTION -I”/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/build/” -o “/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/build/untitled3_0untitled3.cpp.o” “/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp”
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:48: error: constant expression evaluates to 3049323471 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:48: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:59: error: constant expression evaluates to 3921009573 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:59: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:91: error: constant expression evaluates to 2453635748 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:91: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:102: error: constant expression evaluates to 2870763221 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:102: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:113: error: constant expression evaluates to 3624381080 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:113: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:166: error: constant expression evaluates to 2162078206 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:166: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:177: error: constant expression evaluates to 2614888103 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:177: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:188: error: constant expression evaluates to 3248222580 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:188: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:199: error: constant expression evaluates to 3835390401 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:199: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:210: error: constant expression evaluates to 4022224774 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:210: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:284: error: constant expression evaluates to 2554220882 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:284: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:295: error: constant expression evaluates to 2821834349 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:295: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:306: error: constant expression evaluates to 2952996808 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:306: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:317: error: constant expression evaluates to 3210313671 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:317: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:328: error: constant expression evaluates to 3336571891 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:328: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:339: error: constant expression evaluates to 3584528711 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:339: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:434: error: constant expression evaluates to 2177026350 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:434: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:445: error: constant expression evaluates to 2456956037 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:445: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:456: error: constant expression evaluates to 2730485921 which cannot be narrowed to type ‘int’ [-Wc++11-narrowing]
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
/Users/jesse/monkey2/tmp/untitled3.buildv1.1.09/macos_debug/src/untitled3_untitled3.cpp:77:456: note: insert an explicit cast to silence this issue
f0.l_k=bbArray<bbInt>({1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298},64);
^~~~~~~~~~
static_cast<int>( )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.***** Fatal mx2cc error *****
Internal mx2cc build error
Oh!
I get it now. Really misunderstood the concept. I thought that it meant from character 2 slice 2 characters.
I’ll post the code in a while. - 
		AuthorPosts
 
		
		
	