Evgeniy Goroshkin
Evgeniy Goroshkin
If we use operator /= of integer type with float value less than 1, our app will crash. Demo code: ``` Function Main() Local iii:=10 iii/=0.5 Print iii End ```
Looks like extensions of classes depends on namespace. If my class and my extension of class are declared under the same namespace - all fine, but if namespaces are different...
Working on image processing app I found that: https://github.com/blitz-research/monkey2/blob/f3ed955eb732b224970a7ea6bf77f00cb967c563/modules/std/graphics/pixmap.monkey2#L154 Here, `Format `is a property (Format:PixelFormat) of `Pixmap`, and it's used in Select statement as a _PixelFormat equivalent_. I think it's...
I tried to show confirm "Really close app?" right inside of OnWindowEvent and got compile-time error. ``` C:/proj/monkey2/monkey2fork/tmp/untitled1.buildv1.1.08/windows_release_msvc/src/untitled1_untitled1.cpp(42): error C2352: 't_mojo_app_Window::m_OnWindowEvent': illegal call of non-static member function C:/proj/monkey2/monkey2fork/modules/mojo/mojo.buildv1.1.08/windows_release_msvc/include/mojo_app_2window.h(105): note: see...
Attached simple project. Just run main.monkey2 to see the error. [mx2cc_error.zip](https://github.com/blitz-research/monkey2/files/1269701/mx2cc_error.zip)
I use these extension properties: ``` Class Stack Extension Property First:T() Return Self.Length ? Self[0] Else Null End Property Last:T() Return Self.Length ? Self[Self.Length-1] Else Null End End ``` Would...
I have plain text file containing string `hello ~n world!` I want to replace `~n` two chars with real `\n` char. ``` Local s:=LoadString("asset::test.txt" ) Print "1: "+s.Replace("~~n","~n") Print "2:...
Idea is to have such method instead of existing one ``` Method GetStyle:Style( name:String,name2:String=Null,name3:String=Null ) Local style:=Self.GetStyle( name ) If style=Null And name2 style=Self.GetStyle( name2 ) Endif If style=Null And...
^ Is it OK? Maybe we need replace `Function DebugStop()="bbDB::stop"` with ``` Private Function _DebugStop()="bbDB::stop" Function DebugStop() #If __DEBUG__ _DebugStop() #Endif End ```
there is ``` override fun onActivityCreated(activity: Activity?, savedInstanceState: Bundle?) { debugLog("onActivityCreated") // maybeEnableArButton() } ``` in ArCoreView.kt, but Activity must not be nullable here.