----boundary-LibPST-iamunique-1895591035_-_-
Content-type: text/plain
Hi Robert,
Yes - you remember correctly.
No. The translator does not even attempt to translate GOTOs. Most Pascal
programs I have had to work with have only used GOTOs for emergency
situations - e.g. as a simulated HALT which Pascal did not have. This is
easy to fix.
The GOTO in Pascal was a hangover from ALGOL and was not really needed
for anything else. It eventually disappeared when Modula-2 replaced
Pascal. If a Pascal program was littered with GOTOs chances are there
would be other serious problems with its design. If it were me I'd
exhaust all other possibilities before considering translating such a
beast.
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
> -----Original Message-----
> From: blackbox{([at]})nowhere.xy> Behalf Of Campbell, Robert D (SELEX) (UK Edinburgh)
> Sent: Tuesday, 25 October 2005 7:16 PM
> To: BlackBox Mailing List
> Subject: [BlackBox] - Pascal to Component Pascal translators
>
>
>
> Hi
>
> As I remember it, Pascal has a GOTO
> statement and CP does not. Removing
> GOTOs I find one of the hardest tasks
> when 'hand' translating.
>
> Do these tools automate this process
> successfully?, and is there a SIMPLE
> explanation of how they do it?
>
> Cheers
>
> Robert
>
> ********************************************************************
> This email and any attachments are confidential to the
> intended recipient and may also be privileged. If you are not
> the intended recipient please delete it from your system and
> notify the sender. You should not copy it or use it for any
> purpose nor disclose or distribute its contents to any other person.
> ********************************************************************
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy>
>
>
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1895591035_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZ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HBhcg0KPiBSb2JlcnRccGFyDQo+IFxwYXINCj4gKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipccGFyDQo+IFRoaXMgZW1h
aWwgYW5kIGFueSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50aWFsIHRvIHRoZSBccGFyDQo+IGlu
dGVuZGVkIHJlY2lwaWVudCBhbmQgbWF5IGFsc28gYmUgcHJpdmlsZWdlZC4gSWYgeW91IGFyZSBu
b3QgXHBhcg0KPiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IHBsZWFzZSBkZWxldGUgaXQgZnJvbSB5
b3VyIHN5c3RlbSBhbmQgXHBhcg0KPiBub3RpZnkgdGhlIHNlbmRlci4gWW91IHNob3VsZCBub3Qg
Y29weSBpdCBvciB1c2UgaXQgZm9yIGFueSBccGFyDQo+IHB1cnBvc2Ugbm9yIGRpc2Nsb3NlIG9y
IGRpc3RyaWJ1dGUgaXRzIGNvbnRlbnRzIHRvIGFueSBvdGhlciBwZXJzb24uXHBhcg0KPiAqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKlxwYXINCj4gXHBhcg0KPiAtLS0gQmxhY2tCb3hccGFyDQo+IC0tLSBzZW5kIHN1Ympl
Y3QgSEVMUCBvciBVTlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2hccGFyDQo+IFxwYXIN
Cj4gXHBhcg0KPiBccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0
IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KXHBhcg0KfQ==
----boundary-LibPST-iamunique-1895591035_-_---
Received on Wed Oct 26 2005 - 02:14:26 UTC