Title: how am i supposed to work strings and vars with multiple functions? · Issue #155 · orangeduck/Cello · GitHub
Open Graph Title: how am i supposed to work strings and vars with multiple functions? · Issue #155 · orangeduck/Cello
X Title: how am i supposed to work strings and vars with multiple functions? · Issue #155 · orangeduck/Cello
Description: !! !! Uncaught ValueError !! !! Pointer '0x5f3681880004' passed to 'type_of' has bad magic number, perhaps it wasn't allocated by Cello. !! #include
Open Graph Description: !! !! Uncaught ValueError !! !! Pointer '0x5f3681880004' passed to 'type_of' has bad magic number, perhaps it wasn't allocated by Cello. !! #include
X Description: !! !! Uncaught ValueError !! !! Pointer '0x5f3681880004' passed to 'type_of' has bad magic number, perhaps it wasn't allocated by Cello. !! #include <stdio.h> #include <...
Opengraph URL: https://github.com/orangeduck/Cello/issues/155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"how am i supposed to work strings and vars with multiple functions?","articleBody":"```\r\n!!\t\r\n!!\tUncaught ValueError\r\n!!\t\r\n!!\t\t Pointer '0x5f3681880004' passed to 'type_of' has bad magic number, perhaps it wasn't allocated by Cello.\r\n!!\t\r\n```\r\n```c\r\n#include \u003cstdio.h\u003e\r\n#include \u003cstdlib.h\u003e\r\n\r\n#include \"inc/Cello.h\"\r\n\r\nstruct fast_s {\r\n var string;\r\n var number;\r\n};\r\n\r\nvoid initFast(struct fast_s *fast) {\r\n fast-\u003estring = alloc(String);\r\n construct(fast-\u003estring, \"hello, world!\");\r\n show(fast-\u003estring);\r\n fast-\u003enumber = new(Int, $I(4));\r\n return;\r\n}\r\n\r\nint main(int argc, char *argp[]) {\r\n struct fast_s *fast = malloc(sizeof(struct fast_s));\r\n initFast(fast);\r\n show(fast-\u003estring);\r\n show(fast-\u003enumber);\r\n free(fast);\r\n return 0;\r\n}```\r\n\r\ni tried $S $(String new(String but same always fail so how this should be done?","author":{"url":"https://github.com/TunifyBasic","@type":"Person","name":"TunifyBasic"},"datePublished":"2024-12-22T02:15:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/155/Cello/issues/155"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0b96e69-ee6f-e545-dde9-e159b0640725 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA92:145CA8:3BED6:53620:6A4BBE11 |
| html-safe-nonce | aa3663ba52ca82bb543b290e154cf5593bfa2b7ed0aab96cd405d38d609dbf20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTkyOjE0NUNBODozQkVENjo1MzYyMDo2QTRCQkUxMSIsInZpc2l0b3JfaWQiOiIxOTA3MzcxNDMyOTI2MjMyMDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 398f34ec290701a7779afa7a48f7723f27ec684ec3e8715b889771e9cc9f2159 |
| hovercard-subject-tag | issue:2754446958 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/orangeduck/Cello/155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7cc6b0d5322ce7bb600aab2732d318e346a63f8d830b10479d9089cc1968377/orangeduck/Cello/issues/155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7cc6b0d5322ce7bb600aab2732d318e346a63f8d830b10479d9089cc1968377/orangeduck/Cello/issues/155 |
| og:image:alt | !! !! Uncaught ValueError !! !! Pointer '0x5f3681880004' passed to 'type_of' has bad magic number, perhaps it wasn't allocated by Cello. !! #include |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TunifyBasic |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1 |
| turbo-cache-control | no-preview |
| go-import | github.com/orangeduck/Cello git https://github.com/orangeduck/Cello.git |
| octolytics-dimension-user_id | 177299 |
| octolytics-dimension-user_login | orangeduck |
| octolytics-dimension-repository_id | 5100623 |
| octolytics-dimension-repository_nwo | orangeduck/Cello |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5100623 |
| octolytics-dimension-repository_network_root_nwo | orangeduck/Cello |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b15c57117aeff522995a9578e1185f6c45d6c562 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width