86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

pointers are very eleganto

lemmy.world

message-square
39
fedilink
657

pointers are very eleganto

lemmy.world

AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
39
fedilink
  • ZILtoid1991@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Here’s a true example from my collections library:

    https://github.com/ZILtoid1991/collections-d/blob/05e51c1acdd0bb583fbb8548c79d1b3fbaff37cc/source/collections/linkedlist.d#L75

    This one uses a bit safer reference to a pointer:

    https://github.com/ZILtoid1991/collections-d/blob/05e51c1acdd0bb583fbb8548c79d1b3fbaff37cc/source/collections/treemap.d#L662C1-L685C3

    Basically it allows me to modify a pointer easily.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

remote_follow_modal_title

Create a post
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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
community_visibility: public
globe

public_blurb

  • 148 users / day
  • 973 users / week
  • 3.24K users / month
  • 9.88K users / 6 months
  • number_of_local_subscribers
  • 37K subscribers
  • 1.77K Posts
  • 37.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org