|
From: Martijn T. <m.t...@up...> - 2002-10-03 15:03:48
|
> > > In FB1.5 SPs the syntax has been enhance to:
> > >
> > > DECLARE [VARIABLE] name <variable_type> [('=' | DEFAULT) value];
> >
> > It's the usual syntax description ( I forgot the official name for
this ).
> >
> > Things in brackets " [ .. ] " are optional. Things in < > are described
> > somehwere
> > and can usually be broken down into more parts and the pipe | means "or"
...
> > So
> > either = or DEFAULT.
> >
> >
> > > The '=' part is probably like C initialisation of variables, but what
does
> > DEFAULT mean in
> > > this context?
>
> My question relates to the direct equivalence between = and DEFAULT. Are
these just
> alternative ways of setting an initial value?
>
> Are they both equivalent to initialising a variable in C?
By reading the documentation: yes.
> int x = 4;
With regards,
Martijn Tonies
InterBase Workbench - the developer tool for InterBase
http://www.upscene.com
Firebird Workbench - the developer tool for Firebird
http://www.upscene.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
|