<s>
COFFEE	O
(	O
often	O
written	O
as	O
"	O
C.O.F.F.E.E	O
"	O
)	O
was	O
a	O
computer	O
scripting	B-Language
language	I-Language
that	O
forms	O
part	O
of	O
CINEMA	B-Device
4D	I-Device
,	O
a	O
proprietary	O
3D	O
graphics	O
application	O
.	O
</s>
<s>
Although	O
presented	O
as	O
an	O
acronym	O
the	O
letters	O
of	O
the	O
word	O
COFFEE	O
allegedly	O
stand	O
for	O
Cinema	O
Object-oriented	B-Language
Fery	O
Fast	O
Environment	O
Enhancer	O
,	O
it	O
is	O
primarily	O
a	O
comic	O
reference	O
to	O
Java	B-Device
,	O
a	O
considerably	O
more	O
famous	O
computer	O
language	O
.	O
</s>
<s>
COFFEE	O
has	O
been	O
discontinued	O
with	O
Release	O
20	O
of	O
Cinema	B-Device
4D	I-Device
in	O
2018	O
.	O
</s>
<s>
Like	O
most	O
scripting	B-Language
languages	I-Language
,	O
COFFEE	O
is	O
used	O
to	O
extend	O
or	O
modify	O
the	O
functionality	O
of	O
the	O
host	O
software	O
.	O
</s>
<s>
This	O
technique	O
is	O
preferable	O
to	O
writing	O
a	O
so-called	O
plug-in	B-Application
module	O
using	O
a	O
traditional	O
language	O
such	O
as	O
C	B-Language
for	O
a	O
number	O
of	O
reasons	O
,	O
among	O
them	O
:	O
</s>
<s>
The	O
scripting	B-Language
language	I-Language
implicitly	O
handles	O
memory	B-General_Concept
management	I-General_Concept
on	O
the	O
user	O
's	O
behalf	O
,	O
where	O
C	B-Language
does	O
not	O
;	O
</s>
<s>
The	O
language	O
interpreter	B-Application
does	O
not	O
require	O
programs	O
to	O
be	O
compiled	B-Language
as	O
a	O
separate	O
step	O
before	O
they	O
can	O
be	O
used	O
;	O
</s>
<s>
A	O
purpose-built	O
scripting	B-Language
language	I-Language
can	O
be	O
tailored	O
so	O
that	O
it	O
lends	O
itself	O
to	O
its	O
intended	O
usage	O
.	O
</s>
<s>
There	O
are	O
several	O
different	O
aspects	O
of	O
CINEMA	B-Device
4D	I-Device
's	O
operation	O
that	O
can	O
be	O
customised	O
using	O
COFFEE	O
scripts	O
,	O
notably	O
additions	O
to	O
the	O
user	B-Application
interface	I-Application
and	O
extensions	O
for	O
reading	O
and	O
writing	O
new	O
file	O
formats	O
and	O
creating	O
texture	O
shaders	O
.	O
</s>
<s>
COFFEE	O
is	O
a	O
fairly	O
typical	O
curly	O
bracket	O
language	O
and	O
so	O
it	O
would	O
look	O
familiar	O
to	O
any	O
previous	O
user	O
of	O
C/C	O
++	O
,	O
Java	B-Device
,	O
Perl	B-Language
or	O
anything	O
along	O
those	O
lines	O
.	O
</s>
<s>
The	O
function	O
and	O
object	B-Language
class	I-Language
definitions	O
are	O
closely	O
modelled	O
after	O
those	O
of	O
C++	O
.	O
</s>
<s>
Unlike	O
similar	O
scripting	B-Language
languages	I-Language
such	O
as	O
Squirrel	B-Language
and	O
JavaScript	B-Language
,	O
COFFEE	O
does	O
not	O
use	O
a	O
function	O
keyword	O
to	O
introduce	O
functions	O
,	O
nor	O
does	O
it	O
require	O
a	O
return	O
type	O
or	O
"	O
void	O
"	O
return	O
like	O
C/C	O
++	O
-	O
the	O
function	O
definition	O
simply	O
begins	O
with	O
the	O
function	O
name	O
.	O
</s>
<s>
COFFEE	O
's	O
memory	B-General_Concept
management	I-General_Concept
is	O
handled	O
entirely	O
by	O
a	O
garbage	B-General_Concept
collection	I-General_Concept
process	O
;	O
essentially	O
this	O
means	O
that	O
it	O
looks	O
after	O
itself	O
,	O
and	O
the	O
programmer	O
seldom	O
needs	O
to	O
worry	O
about	O
it	O
.	O
</s>
<s>
Since	O
COFFEE	O
is	O
used	O
to	O
extend	O
CINEMA	B-Device
4D	I-Device
,	O
it	O
clearly	O
needs	O
to	O
make	O
use	O
of	O
the	O
host	O
program	O
's	O
features	O
to	O
some	O
extent	O
.	O
</s>
<s>
Through	O
the	O
application	B-Application
programming	I-Application
interface	I-Application
(	O
API	B-Application
)	O
it	O
is	O
possible	O
to	O
locate	O
3D	O
objects	O
created	O
by	O
the	O
user	O
and	O
access	O
their	O
internal	O
data	O
structures	O
.	O
</s>
<s>
Since	O
a	O
major	O
purpose	O
of	O
COFFEE	O
is	O
to	O
allow	O
new	O
file	O
formats	O
to	O
be	O
used	O
,	O
the	O
Cinema	O
API	B-Application
provides	O
features	O
useful	O
for	O
the	O
task	O
;	O
a	O
file	O
input/output	O
class	O
is	O
available	O
and	O
this	O
allows	O
individual	O
items	O
of	O
binary	O
data	O
(	O
such	O
as	O
integers	O
and	O
floating	O
point	O
numbers	O
)	O
to	O
be	O
read	O
and	O
written	O
.	O
</s>
