Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bugs in `declare!` docs

Aperta
#220 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
documentation

Direzione di ricerca

Start by locating the documentation section for declare! and compare its struct declaration example and size calculation with the issue. Read the linked commit for the static-allocation concern. Done means correcting the two examples and documenting the allocation behavior and its use inside functions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

1


s/c: declare struct! [d [integer!] e [float!]] it should be

2

And just below:

12 + 4 (integer) + 8 (float) = 24 in my book, not 20 bytes

3

The returned value of DECLARE STRUCT! is the memory address of the newly created struct! value.

It is never stated that structure is static (only allocated once), so is dangerous to use inside functions (see https://github.com/red/red/commit/069f33520c00c57f297886fc7272f60a259579bb commit)

Lingua principale
CSS
Stelle
68
Fork
47
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di red/docs

Tutte le issue di red/docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.