[comp.lang.pascal] Wish List for TP6.0

nmouawad@water.waterloo.edu (Naji Mouawad) (09/26/90)

Thanks to all those who sent comments about TP 6.0. Most of these
comments where posted and no summary is necessary.

While on the subject, I'd like to know what features you'd like to
see in TP 6.0 . 

Here's mine:

   1) Object extensions:
             -Private and Public data and methods (I guess w'll get that)
             -Allow something like:
                   Object a
                   Object b
                   Object c (a,b)
                   That is allow for an object to be the descendant
                   of more than one object. Ambiguity is resolved by
                   imposing a priority on the objects, corresponding
                   to their index in the parathesis (if a method in `a'
                   has the same name as a method in `b', it is choosen
		   because `a' comes before `b' in the list).

  2) Transitive assignments:
          x := y := z := d;

  3) Regular expressions in Conditional directives:
      {$Ifdef a or b and (c or d)}

  4) Give us back the .com files !

  5) Interactive linker: when in doubt, it'll ask whether a method
     should be stripped or not. IMHO, a good answer to the dead code
     due to late binding.

  6) Macros !

  7) Assembly code allowed within. NOT inline, I mean assembly code.
     I would be perfectly happy if the compiler calls the assembler and
     if some restriction is imposed on the assembly code to make all of this
     managable.


Naji.
     
      
-- 
         ---------------+-------------------------------------------
        | Naji Mouawad  |       nmouawad@water.waterloo.edu         |
        |  University   |-------------------------------------------|
        | Of Waterloo   | "Thanks God, we cannot prove He Exists."  |

IN307%DHAFEU11.BITNET@cunyvm.cuny.edu ( Peter Sawatzki) (09/26/90)

Assembly code within TP6.0 ?
Why don't you use the TPA package from Richard W. Prescott ?
It works for TP4.0, 5.0 and 5.5 and modifies the compiler at
runtime to "know" the keyword "Assemble". Example:

Procedure PopAx;
Assemble
  Pop Ax
End;

Example 2:
Var b: Word;    (global)

Procedure Xyz;
Var
  a: Word;      (local)
Begin
  a:= 3;
  Assemble
    Mov Ax,a                ;local
    Cmp Ax,3
    Jne label1
    PAS Halt(10);            (a Pascal statement!!!)
label1:
    Mov b,Ax                 ;global
End;


 :::::::::::::::::::::::::::::::::::::::::
: Peter Sawatzki  <IN307DHAFEU11.BITNET> :
 :::::::::::::::::::::::::::::::::::::::::

streich@boulder.Colorado.EDU (Mark Streich) (09/26/90)

I want the ability to have public read-only fields in my objects so I
don't have to create functions for every field when I want to let 
someone access the value of a field, but not modify it.

example:

  rootclass = object
    employee_num : string; readonly;
  end;

  var anobj : rootclass;

legal:
  if anobj.employee_num = ... then

illegal:
  anobj.employee_num := ... ;

Is this what people mean by "private" fields?

uono@orient.center.nitech.ac.jp (Kentarou Uono) (09/27/90)

Hello all,
  May I make a question about TPA package? I am a TP5.5 programmer,
and interested in the package.

In article <24615@adm.BRL.MIL> IN307%DHAFEU11.BITNET@cunyvm.cuny.edu
 ( Peter Sawatzki) writes:
   >>Assembly code within TP6.0 ?
   >>Why don't you use the TPA package from Richard W. Prescott ?
   >>It works for TP4.0, 5.0 and 5.5 and modifies the compiler at
   >>runtime to "know" the keyword "Assemble". Example:

 1. Is it a commertial product or kind of PD/SW soft?
 2. What kind of software, such as pre-processor or patch programme for 
    the compiler?
 3. How can I get it, if it is PD/SW?
					Thank you.
--
_____________________________________________________________________________
uono@orient.center.nitech.ac.jp	| Do not use e-mail (to me) from outside JPN.
Kentaro Uono,JE2OPL ____________| Ken. Fishfield ______________  ````````````

nmouawad@water.waterloo.edu (Naji Mouawad) (09/27/90)

In article <24615@adm.BRL.MIL> IN307%DHAFEU11.BITNET@cunyvm.cuny.edu ( Peter Sawatzki) writes:
>Assembly code within TP6.0 ?
>Why don't you use the TPA package from Richard W. Prescott ?
>It works for TP4.0, 5.0 and 5.5 and modifies the compiler at
>runtime to "know" the keyword "Assemble". 
[Examples deleted]
>
> :::::::::::::::::::::::::::::::::::::::::
>: Peter Sawatzki  <IN307DHAFEU11.BITNET> :
> :::::::::::::::::::::::::::::::::::::::::

Ahem ... the only reason I don't use this package is because
I've never heard of it !

Could you please tell me where I can find this package ?

Thanks in advance.

Naji.

-- 
         ---------------+-------------------------------------------
        | Naji Mouawad  |       nmouawad@water.waterloo.edu         |
        |  University   |-------------------------------------------|
        | Of Waterloo   | "Thanks God, we cannot prove He Exists."  |