[fpc-pascal] Can variables be declared within a block?

Frank Church vfclists at gmail.com
Mon Oct 18 14:58:09 CEST 2010


On 18 October 2010 07:49, Florian Klaempfl <florian at freepascal.org> wrote:

> Am 18.10.2010 08:17, schrieb Zaher Dirkey:
> >
> >
> > On Thu, Oct 14, 2010 at 11:21 AM, Michael Van Canneyt
> > <michael at freepascal.org <mailto:michael at freepascal.org>> wrote:
> >
> >
> >
> >     On Thu, 14 Oct 2010, Frank Church wrote:
> >
> >         Can variables be declared within a begin end block?
> >
> >
> >     No.
> >
>

That is a rather emphatic no :).
 Is there some performance or other related reason why it is a bad idea? I'm
not knowledgeable in this area but I'd like to know.

Sometimes my variable declarations is filled with lots of variables for the
sake of making code involving long derived expressions comprehensible and
the clutter the understanding at the top level of the procedure.

Can a procedure be declared inline just for the sake of introducing those
variables?



> >
> > That found in Gnu Pascal
> > Can we ask to be feature request?
> >
>
> No.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101018/8d847eef/attachment.html>


More information about the fpc-pascal mailing list