Not sure about how to do this with Godot, but a common pattern for this in other languages is creating something like a 32 bit value where the lower bits are the enum and the upper bits are the status code (assuming they are <=16bit each) and then doing a switch on the resulting packed value.
- 0 Posts
- 23 Comments
Hungary was never part of the USSR
lbfgs@programming.devto
Comic Strips@lemmy.world•Go ahead and reward yourself with a very small cookie, or maybe a string cheese.
32·1 month agoUntil you injure your knee/spine due to the repetitive impact from the steps that is
Heh, lot of good that did you in the USSR/Mao era China
*contingent on a symmetric intelligence distribution
lbfgs@programming.devto
World News@lemmy.world•Germans face five years in jail for denying Israel’s right to existEnglish
1·2 months agoYour occupation government demanded Germans to outlaw this type of speech in the postwar constitution.
lbfgs@programming.devto
United Kingdom@feddit.uk•Keir Starmer faces ‘judgment day’ as Mandelson vetting debacle growsEnglish
3·2 months agoIt’s a lie.
Tory shadow justice secretary Nick Timothy said on Friday that he had been aware of such an incident when he was chief of staff to Prime Minister Theresa May. “When I was in No 10, somebody failed developed vetting before their proposed appointment to a sensitive post. We were told immediately, and were advised — correctly — that this person could not be appointed. Who gave that advice? Sue Gray — later Starmer’s chief of staff,” Timothy said on X.
Allies of Olly Robbins defend handling of Mandelson vetting - https://www.ft.com/content/58c01bc9-12bf-440c-9a91-01c130a6a9c1?shareType=nongift via @FT
lbfgs@programming.devto
Learn Programming@programming.dev•Result<T, E> in TypeScript: A Better Alternative to Throwing
5·3 months agoGo’s val, err := maybeDoThing() pattern isn’t the same thing because it’s not a discriminated union like Rust’s Result or C++'s std::expected or the Typescript example in the article. Moreover, due to restrictions in Go’s generics, it’s impossible to implement what is imo the most attractive pattern enabled by the discriminated union Result types - monadic operations.
lbfgs@programming.devto
Canada@lemmy.ca•Canada will cancel thousands of refugee claims under new retroactive law
12·3 months agoHolocaust story you shared is sad but has nothing to do with this specific change. I find it really disturbing that you cheapen the unique suffering of holocaust victims to score points here. Holocaust victims, or indeed anyone genuinely needing asylum, would not have waited over a year to apply.
There has to be a cutoff for any change. I think there is a genuine argument to be made from a rule of law perspective that no law should have retroactive effect. However, considering your posts in this thread I have a feeling you wouldn’t be satisfied with making this law not retroactive anyway.
lbfgs@programming.devto
Canada@lemmy.ca•Canada will cancel thousands of refugee claims under new retroactive law
84·3 months agoDid you even read the article? There is a process and the changes outlined in the article are a change to the process to make it less game-able by economic migrants posing as refugees. Namely
anyone who first arrived in Canada after June 24, 2020, will not be allowed to make a refugee claim after one year
Which makes a lot of sense, because it impacts approximately 0 genuine refugees (they either get refugee visas before arrival or tend to apply as soon as they arrive) and cuts out lots of economic migrants posing as refugees (who tend to arrive on a temporary work permit or student visa and want to extend their stay).
The article is NOT about abolishing the right to apply for asylum.
lbfgs@programming.devto
Canada@lemmy.ca•Canada will cancel thousands of refugee claims under new retroactive law
75·3 months agoThe UN human rights declaration’s right to asylum was built with political asylum in mind, to protect people who are genuine victims of oppression and war. It was not built for economic migrants. The abuse of the system by opportunists killed it for everyone.
Traders love doing this
lbfgs@programming.devto
Linux@programming.dev•The Free Software Foundation Europe was cancelled by their payment provider after refusing to hand over personal account data!
105·3 months agoThls ls why crypto was invented
lbfgs@programming.devto
World News@lemmy.world•Vladimir Putin congratulates Mojtaba Khamenei and offers 'unwavering support'English
1·3 months agoAssad got a full Russian air force deployment to flatten Idlib and still lost. There’s a limit to everything.
lbfgs@programming.devto
Privacy@lemmy.ml•"look! the #signalapp income and salaries report for 2024 dropped!" #startpocketwatching #opentechnologyfund #usgovernmentsponsored
3·4 months agoThat’s definitely wrong. The head of whatsapp is almost certainly an E9 level or above employee, most likely above. And the average E9 makes like $4M a year
Doesn’t mean he’s living paycheck to paycheck. People often don’t leave a lot of money in checking accounts from which they pay mortgages because checking accounts often offer 0% interest. So if the landlord usually has close to 0 money in his checking account expecting rent to come ahead of the mortgage paynent despite having millions in a brokerage account he’ll still go into overdraft.
lbfgs@programming.devto
Technology@lemmy.world•Android will become a locked-down platform in 194 daysEnglish
341·4 months agoEU wants phones to be locked down so they can then make Google implement mass surveillance for “national security” reasons
lbfgs@programming.devto
Linux@programming.dev•Linux 7.0 Officially Concluding The Rust Experiment
12·5 months agoOne big practical criticism is that it requires a different compiler which is supported on far fewer platforms than GCC
Too bad more often than not the kids that actually do homework do it only if their parents sit down with them every night to do it together





I had a systemd bug delay shutdown for 2 mins every time for a very long time on Debian. Never managed to fix it, Fedora did not have the same issue fortunately.