SRL Archive - Discussions & Debates

Bold words in simba


rj

2013-06-18 23:49:45

Here are a list of all the bold words I know of in Simba:

file
in
var
set
of
class
record
end
out
const
begin
array
function
procedure
string
and
not
nil
property
constructor
then
if
try
finally
except
with
do
else
or
forward
record
type
case
for
Dispid
goto
while
xor
uses
unit
inline
repeat
dynamic
until
Stored
Library
private
as
label
overload
Inherited
Readonly
Published
Override
Nodefault
Export
Register
Automated
mod
div
Virtual
Protected
Exports
Implements
far
cdecl
read
Dispinterface
pascal
write
Reintroduce
Finalization
packed
near
Writeonly
Destructor
raise
Stringresource
shl
shr
Resourcestring
object
Initialization

But I have only ever used the following:
file,var,of,record,end,const,begin,array,function,procedure,string,and,not,nil,then
if,try,finally,except,with,do,else,or,type,case,for,goto,while,repeat,until,label

How do you use the others?

Janilabo

2013-06-19 02:39:23

Even though there is a lot of those bold words, not of all them are supported in Simba/SCAR, but I am sure you were aware of this..

Anyways, here is some tutorials for shl/shr/xor:
Bitwise operations by @Yakman
Bitwise Operations by @caused
In-depth Bitwise Operators. by @R0b0t1
Bitwise Operations and Practical Uses by @Alpha Kue

Bold words "set" and "in" can be used with set types:
Types, Arrays, and Classes by @Dan Cardin
A list of common Types in SCAR - Plus making your own!! by @Naum

..and here is a small example at using forward, because with quick search I couldn't find any tutorials that covers it:

procedure B; forward; // We need this for procedure A, it wont be able to run procedure B without forwarding.

procedure A;
begin
ClearDebug;
WriteLn('We are at procedure A!');
B; // The "procedure B; forward;" will be needed for this action!
end;

function C(x: Integer): string; forward; // We need this for procedure B, it wont be able to run function C without forwarding.

procedure B;
begin
WriteLn('We are at procedure!');
WriteLn('"' + C(100) + '"');
end;

function C(x: Integer): string; // Example to use forward with parameters.. :)
begin
WriteLn('We are at function C!');
Result := IntToStr(x);
end;

begin
A; // Let the show begin!
end.

Also, some discussion from past - SCAR bolded words
Including some lists of bolded words! :)