Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Lobste.rsEnglish · 6 months ago

Best Practices for Ownership in GLib

blog.sebastianwick.net

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • c_lang@programming.dev
1
external-link

Best Practices for Ownership in GLib

blog.sebastianwick.net

RSS BotMB to Lobste.rsEnglish · 6 months ago
message-square
0
link
fedilink
  • cross-posted to:
  • c_lang@programming.dev
For all the rightful criticisms that C gets, GLib does manage to alleviate at least some of it. If we can’t use a better language, we should at least make use of all the tools we have in C with GLib. This post looks at the topic of ownership, and also how it applies to libdex fibers. Ownership In normal C usage, it is often not obvious at all if an object that gets returned from a function (either as a real return value or as an out-parameter) is owned by the caller or the callee:

Comments

alert-triangle
You must log in or # to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 50 users / day
  • 152 users / week
  • 502 users / month
  • 1.74K users / 6 months
  • 2 local subscribers
  • 388 subscribers
  • 14.5K Posts
  • 1.01K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org