Lemmy.one
  • 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
697

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

Subscribe from Remote Instance

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.
Visibility: Public
globe

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

  • 822 users / day
  • 1.26K users / week
  • 3.49K users / month
  • 9.96K users / 6 months
  • 440 local subscribers
  • 36.6K subscribers
  • 1.78K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org