PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

XBase++

< >

XBase++ is a programming language created in 1997.

#382on PLDB 26Years Old 115Users
0Books 0Papers

Xbase++ is an object oriented programming language which has multiple inheritance and polymorphism. It is based on the XBase language dialect and conventions. It is 100% Clipper compatible language supporting multiple inheritance, polymorphism, object oriented programming. Read more on Wikipedia...


Example from hello-world:
func Main() Qout("Hello World") return 1
Example from Wikipedia:
#include "class.ch" // // This program prints: // // Missy Meow! // Mr. Bojangles Meow! // Lassie Bark! // Press any key to continue... // ///////////////////////////// // PROCEDURE Main() // ///////////////////////////// LOCAL aAnimals := Array(3) LOCAL i aAnimals[1] := Cat():New("Missy") aAnimals[2] := Cat():New("Mr. Bojangles") aAnimals[3] := Dog():New("Lassie") FOR i:=1 TO LEN(aAnimals) ? aAnimals[i]:Name + " " + aAnimals[i]:Talk() NEXT i WAIT RETURN ///////////////////////////// // CLASS Animal // ///////////////////////////// EXPORTED: VAR Name READONLY METHOD Init DEFERRED CLASS METHOD Talk ENDCLASS METHOD Animal:Init( cName ) ::Name := cName RETURN Self ///////////////////////////// // CLASS Dog FROM Animal // ///////////////////////////// EXPORTED: METHOD Talk ENDCLASS METHOD Dog:Talk() RETURN "Bark!" ///////////////////////////// // CLASS Cat FROM Animal // ///////////////////////////// EXPORTED: METHOD Talk ENDCLASS METHOD Cat:Talk() RETURN "Meow!"

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging Qout
Comments
// A comment
Line Comments //
// A comment
Semantic Indentation X
setl.html · xbasepp.html · katex.html

View source

PLDB - Build the next great programming language · Search · v2023 · Day 160 · Docs · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com