F.E.L.T.

Functionally Equivalent Language Translation

DEFCLASS

(defclass
    class-name | (class-name superclass-name)
    (:implements IName-1 IName-2 ...IName-N)
    
    (mvar ...)   ; define member data
    (cvar ...)   ; define class data
    (const ...)  ; define constants
    (defun ...)  ; define member / class functions
)

This is the FELT instruction that allows you to define a 'class' in the object-oriented paradigm. The CLASS instruction is a synonym for this one and can be used interchangeably and is done for easier migration towards Lisp in the future.


Classes and PHP

All of the various parts of defining classes for PHP have been detailed in this document, Coding for PHP. Please refer to that page for instructions on how to code classes in PHP.

Classes and JavaScript

JavaScript doesn't really have classes although it is possible to produce something that walks like a class, talks like a class and smells like a class. Please refer to Coding for JavaScript / Node.js