Forum Replies Created
-
AuthorPosts
-
Next and Wend are more readable for me.
January 19, 2018 at 2:36 pm in reply to: derived class as argument for base class and other rules for inheritance #13035Probably, it’s a lang bug. The code looks correct.
Nice work!
There will be good to have “Read more” button in News section – to see short/clean blog entries and jump into if needed.
You cat to simplify a bit logic with iterator:
Monkey123456789101112131415161718192021222324252627282930' current variantIf pb.model.Y < -20pb.model.Scale = pb.model.Scale * 0.75If pb.model.Scale.x < 0.01pb.model.Destroy ()iter.Erase ()Elseiter.Bump ()EndifElseiter.Bump ()Endif' new variantIf pb.model.Y < -20pb.model.Scale = pb.model.Scale * 0.75If pb.model.Scale.x < 0.01pb.model.Destroy ()iter.Erase ()ContinueEndifEndifiter.Bump ()Yes, it’s time to add setup wizard.
I like prime themes except of bold font. That’s why I revert default theme to warm.
If wizard will take a long time I can set back prime one.
It’s in progress.
Very nice explanation to be article-ized.
Are you afraid of iterators?
My example above is an analogue of native Eachin.
I think it’s the fastest and easiest way.
Try to remove items inside of ‘foreach’ in Java or C# and you’ll get runtime error “collection was modified due iterating” (text isn’t exactly).
To be able to remove items due iterating you have to use stack.iterator with while loop:
Monkey1234567891011121314151617Local iter:=stack.All ()While Not iter.AtEnd ()Local value:=iter.CurrentIf value=needRemoveiter.Erase ()Elseiter.Bump ()EndifWendTabs to spaces – will be added.
Docs manuals – will be added. I don’t know why you can’t drag divider, it should to work.
Thanks.
Classes, methods etc have start and end positions, but parser knows nothing about inner code elements like If-s this time, it’s not difficult to teach it but multilined stuff is a problem. Maybe Mark help me when I will implement that.
Folding is in todo.
What does “indent by fold feature” mean?
/parser/Monkey2Parser.m2
/view/AutocompletionDialog.m2 (there are few related classes)
/view/ListViewExt.m2 – my custom listview that renders items
/document/CodeDocument.m2
* .m2 – to be shorter
About FPS – it depends on SwapInterval, is there waiting for vsync or not.
If rendertime is small then waiting time will be longer to make fps count const.
It worked for me. But this code is technically equivalent to above one. So it can produce null pointer.
As a solution for prefs, we can initialize _ptefs field right inside of Get () if it is null.
Consts initialization is a weak side of monkey2, that may cause errors, so that it’s important to have related remarks in docs.
(Waiting for a developer that can bring dependency checking.)
Look at this
There is a WHILE loop that grab all events. Maybe we need to grab by portions or every second frame or … ?
I didn’t test how much millisecs are needed to dispatch holded keys. And maybe the bottleneck isn’t here.
-
AuthorPosts