Proof of concept
@proofofconcept
It was painful, but I got the object oriented C to work. Here's how:
When an object is created, its function pointers are initialized to addresses. Th
C
I've tried to boil down the problem of https://repl.it/talk/ask/Object-oriented-C/24356 to a simpler program that still fails. It causes an error whic
Bash
I've been trying to mess with some weird features in C to make it look object oriented. I created that repl (linked), and it defines a struct that has
Bash
proofofconcept I've boiled this down to a simpler program with the same issue: https://repl.it/talk/ask/Object-oriented-C-part-2/243643 years ago
theangryepicbanana I don't do C much, but you probably need to free this memory here, right?
struct MyClass* st = malloc(sizeof(MyClass));
`3 years ago
Have you ever wanted to parse a mathematical expression without any newlines in your code? Of course you have - we've all been there. For those times
Python
This calculator uses a recursive descent parser. It supports variables with one letter names so far
https://repl.it/@proofofconcept/Basic-recursive-de
emilian1000000 I did the problem 9208375209478529038572975803.50972892857 \*798250, and the answer was incorrect \(I checked on Google\). Any ideas what the problem could be?5 years ago
proofofconcept New improvement: functions!
These can evaluate an expression given arguments.
You define them like:
<func_name> of <comma separated arguments>: <expression>
For example:
square of x: x\*x
Then you can say square\(5\) for example, returning 25
They can be nested however you want5 years ago
https://repl.it/@proofofconcept/Text-based-super-mario-bros
A text based \(very basic\) minimal dungeon game!
https://repl.it/@ShmeeVorz_/Murderous-Dungeon-12
In this game you must adventure through a dangerous cave!
https://repl.it/@proofofconcept/Cave
PS if you can beat the game on hard without cheating tw