Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unit namespace

0 views
Skip to first unread message

Il Razziatore

unread,
Feb 2, 2008, 7:21:29 PM2/2/08
to
Hi,
I have a question about ansi-iso pascal.

I have 2 unit and a main file

=== file a.pas: ===
Unit A;

Interface

Var X : Byte;

End;

=== file b.pas: ===
Unit B;

Interface

Var X : Byte;

End;

=== file main.pas ===

Program main;

uses A, B

begin
A.X := B.X;
end;

the istruction A.X := B.X; is standard or it came with borland dialet?
Standard Pascal have "unit namespace"?

--
Il Razziatore,
The Only Good Windows is an uninstalled Windows
-----------------------------------------------
MSN : IlRazz...@netscape.net
ICQ : 67552596
Yhaoo : Razziatore82
-----------------------------------------------
Founder of MediaPlayer Project
http://mpp.iwebland.com

CBFalconer

unread,
Feb 3, 2008, 12:08:02 AM2/3/08
to
Il Razziatore wrote:
>
> I have a question about ansi-iso pascal.
> I have 2 unit and a main file
>
> === file a.pas: ===
> Unit A;
>
> Interface
>
> Var X : Byte;
> End;
>
> === file b.pas: ===
> Unit B;
>
> Interface
>
> Var X : Byte;
> End;
>
> === file main.pas ===
> Program main;
>
> uses A, B
>
> begin
> A.X := B.X;
> end;
>
> the istruction A.X := B.X; is standard or it came with borland
> dialet? Standard Pascal have "unit namespace"?

Try reading the Extended Pascal Standard ISO10206.txt. You can get
it bzip2 compressed from:

<http://cbfalconer.home.att.net/download/iso10206.bz2>

Scott Moore has listing of ISO7185 available (unextended Pascal)

Your assignment statement is standard. The units etc. vary.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

0 new messages