Fun: Object Pascal on VMS

Liste des GroupesRevenir à co vms 
Sujet : Fun: Object Pascal on VMS
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 02. Sep 2024, 16:35:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb4lvk$2t1k9$1@dont-email.me>
User-Agent : Mozilla Thunderbird
program demo(input, output);
{$include fpcjvm.inc}
type
   T1 = class(TObject)
     private
       m_f1 : integer;
       m_f2 : string;
     public
       constructor Create;
       constructor Create(f1 : integer; f2 : string);
       property F1 : integer read m_f1;
       property F2 : string read m_f2;
   end;
constructor T1.Create;
begin
   m_f1 := 0;
   m_f2 := '';
end;
constructor T1.Create(f1 : integer; f2 : string);
begin
   m_f1 := f1;
   m_f2 := f2;
end;
procedure dump(o : T1);
begin
    write('F1=');
    write(o.F1);
    write(',F2=');
    write(o.F2);
    writeln;
end;
var
    o1, o2 : T1;
begin
    o1 := T1.Create;
    dump(o1);
    o1.Free;
    o2 := T1.Create(123, 'ABC');
    dump(o2);
    o2.Free;
end.
On PC:
C:\Work\VMS\objectpascal>ppcjvm demo.pas
Free Pascal Compiler version 3.0.4 [2017/10/07] for jvm
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Java Virtual Machine
Compiling demo.pas
demo.pas(37,14) Warning: Implicit string type conversion from "ShortString" to "UnicodeString"
Assembling demo
Generated: .\T1.class
Generated: .\demo.class
Warning: Object system.class not found, Linking may fail !
63 lines compiled, 0.7 sec
2 warning(s) issued
C:\Work\VMS\objectpascal>jar cvf demo.jar demo.class T1.class
added manifest
adding: demo.class(in = 1179) (out= 668)(deflated 43%)
adding: T1.class(in = 1168) (out= 579)(deflated 50%)
On VMS:
$ java -cp demo.jar:fpcjvm.jar "demo"
F1=0,F2=
F1=123,F2=ABC
Arne

Date Sujet#  Auteur
2 Sep 24 * Fun: Object Pascal on VMS36Arne Vajhøj
3 Sep 24 `* Re: Fun: Object Pascal on VMS35Lawrence D'Oliveiro
3 Sep 24  +- Re: Fun: Object Pascal on VMS1Single Stage to Orbit
3 Sep 24  +* Re: Fun: Object Pascal on VMS15Simon Clubley
3 Sep 24  i`* Re: Fun: Object Pascal on VMS14Dave Froble
3 Sep 24  i `* Re: Fun: Object Pascal on VMS13Simon Clubley
3 Sep 24  i  +- Re: Fun: Object Pascal on VMS1bill
3 Sep 24  i  +- Re: Fun: Object Pascal on VMS1Arne Vajhøj
4 Sep 24  i  `* Re: Fun: Object Pascal on VMS10Dave Froble
4 Sep 24  i   +* Re: Fun: Object Pascal on VMS8Arne Vajhøj
7 Sep 24  i   i`* Re: Fun: Object Pascal on VMS7Dave Froble
7 Sep 24  i   i +- Re: Fun: Object Pascal on VMS1Arne Vajhøj
7 Sep 24  i   i +* Re: Fun: Object Pascal on VMS2bill
7 Sep 24  i   i i`- Re: Fun: Object Pascal on VMS1Dave Froble
9 Sep 24  i   i `* Re: Fun: Object Pascal on VMS3Simon Clubley
9 Sep 24  i   i  +- Re: Fun: Object Pascal on VMS1Michael S
9 Sep 24  i   i  `- Re: Fun: Object Pascal on VMS1Dan Cross
4 Sep 24  i   `- Re: Fun: Object Pascal on VMS1Arne Vajhøj
3 Sep 24  `* Re: Fun: Object Pascal on VMS18Arne Vajhøj
3 Sep 24   `* Re: Fun: Object Pascal on VMS17Craig A. Berry
3 Sep 24    +* Re: Fun: Object Pascal on VMS6Arne Vajhøj
4 Sep 24    i`* Re: Fun: Object Pascal on VMS5Arne Vajhøj
7 Sep 24    i `* Re: Fun: Object Pascal on VMS4Lawrence D'Oliveiro
7 Sep 24    i  +- Re: Fun: Object Pascal on VMS1Arne Vajhøj
7 Sep 24    i  +- Re: Fun: Object Pascal on VMS1Arne Vajhøj
9 Sep 24    i  `- Re: Fun: Object Pascal on VMS1Simon Clubley
4 Sep 24    `* Re: Fun: Object Pascal on VMS10bill
4 Sep 24     `* Re: Fun: Object Pascal on VMS9Arne Vajhøj
4 Sep 24      +* Re: Fun: Object Pascal on VMS4bill
4 Sep 24      i+* Re: Fun: Object Pascal on VMS2Dave Froble
4 Sep 24      ii`- Re: Fun: Object Pascal on VMS1Simon Clubley
4 Sep 24      i`- Re: Fun: Object Pascal on VMS1Arne Vajhøj
4 Sep 24      `* Re: Fun: Object Pascal on VMS4Chris Townley
4 Sep 24       `* Re: Fun: Object Pascal on VMS3Arne Vajhøj
4 Sep 24        `* Re: Fun: Object Pascal on VMS2Lawrence D'Oliveiro
5 Sep 24         `- Re: Fun: Object Pascal on VMS1Simon Clubley

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal