Forum Replies Created
-
AuthorPosts
-
This editor is looking really good. I haven’t installed the latest update but so far I find it quite useful as I am using it.
I don’t know if you have fixed the command-x to cut. you have it described in the edit window as command-x but its actually control-x on the keyboard. for all purpose it should be command-x. thats for OS X.
I’m going to have to scrap that idea somewhat and use vector sequence instead. It’ll help me freshen up on my vector math.
sorry I forgot about that. Corrected source code!
To go through a complete list:
[/crayon]Monkey123456[crayon-5cba9fc025685239601721 inline="true" ]For Local itemInstance := EachIn myListitemInstance.x = 10itemInstance.y = 25NextThere is no simple way to go trough part of the list. list are made to go from the first to the last or vice versa. you can convert it “ToArray” and then index it that way but converting it to array is slow. or you can use an index variable to find the ones you want to process:
[/crayon]Monkey12345678910[crayon-5cba9fc02568c620318216 inline="true" ]Local i:int = 0For Local itemInstance := EachIn myListif i > 3itemInstance.x = 10itemInstance.y = 25EndIfi += 1Nextor
[/crayon]Monkey1234567[crayon-5cba9fc025692526857672 inline="true" ]For Local itemInstance := EachIn myListif itemInstance.y > 100itemInstance.y = 0EndIfNextI get you Mark. I am also having a hard time. i have been in disability for the last 8 months living only on disability insurance which is a misery. Supporting a wife and two dogs. I still donate because I don’t see my small donation and don’t miss it.
Do users really think that Mark work is not worth more than $1?
I guess, considering that that there are users not contributing at all than $1 is better than nothing.I wish it was that easy.
I like Linux. I just don’t like the way it runs on my Macbook. It doesn’t feel right. I had it installed on it but when my HD started to fail, I removed the partition. I need to get a new HD but the hassle of reinstalling software and moving files has deterred me from doing it. I know I have to do it, I just have been too busy and too lazy to want to tackle it.
I believe it’s updated through Xcode and I got the latest version for my model number with El Capitan. It just seems to be the outdated hardware. if there is some other way to update it, I don’t know.
I just tried to run it and keep getting an error. It compiles fine but fails to execute with a “Memory access violation” in this line:
[/crayon]Monkey12[crayon-5cba9fc038fbb381966578 inline="true" ] print("Vendor: "+String.FromCString( glGetString(GL_VENDOR) ) )I wonder if its because its an older computer. I tried to run the banana’s “sdl2Ttest” and it gives me the same error.
Early 2011 Macbook pro 2.3 GHz Intel Core i5 El Capitan.
> Does that even work? Isn’t link.Succ null after the Remove()?
You should know. you wrote it! :).
but yes it works.>And of course, List.Clear() is fastest…
yes its faster. but for my usage which is not as simple as that, mine is a better option.[/crayon]Monkey123456789101112[crayon-5cba9fc03cb53400818681 inline="true" ]If Not list.EmptyLocal link := list.FirstNode()While link.ValueIf link.Value.deadlink.Remove()Endiflink = link.SuccWendEndIfI don’t see that as much of a stunt as its all part of List’s public functionality.
I guess we are crossing posts. Hahahah!
I usually only do it like this:
[/crayon]Monkey123456789[crayon-5cba9fc040865802987618 inline="true" ]If Not list.EmptyLocal link := list.FirstNode()While link.Valuelink.Remove()link = link.SuccWendEndIfThis should be a bit faster. I suspect.
correction I did get the error by adding an item to the list:
[/crayon]Monkey1234567891011121314151617181920[crayon-5cba9fc044354694921480 inline="true" ]#Import "<std>"Using std..Class TestEnd ClassFunction Main()Global My_Test_List:=New List<Test>Local test_object:=New TestMy_Test_List.AddLast(test_object)For Local myobject:Test=Eachin My_Test_ListMy_Test_List.Remove(myobject)NextEnd Function@Richard
Your code on the first post works fine as is. I tried it and it does not give any errors compiling it with the latest MX2. The error must be somewhere else in your code. -
AuthorPosts

