From dcd442adbac004e4974932ac7f39117f9e259865 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 5 May 2021 09:38:11 +0100 Subject: separate header from impl. --- content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi') diff --git a/content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi b/content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi index 064a08ce..ac7c3790 100644 --- a/content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi +++ b/content/gemtext/gemfeed/2010-05-09-the-fype-programming-language.gmi @@ -24,7 +24,7 @@ Fype is a recursive acronym and means "Fype is For Your Program Execution" or "F The Fype interpreter is written in an object oriented style of C. Each "main component" has its own .h and .c file. There is a struct type for each (most components at least) component which can be initialized using a "COMPONENT_new" function and destroyed using a "COMPONENT_delete" function. Method calls follow the same schema, e.g. "COMPONENT_METHODNAME". There is no such as class inheritance and polymorphism involved. -To give you an idea how it works here as an example is a snippet from the main Fype "class": +To give you an idea how it works here as an example is a snippet from the main Fype "class header": ``` typedef struct { @@ -35,6 +35,8 @@ typedef struct { } Fype; ``` +And here is a snippet from the main Fype "class implementation": + ``` Fype* fype_new() { -- cgit v1.2.3