Leo:

HLLs like Smalltalk that treat everything as an object do so only at the
visible HLL level.  Underneath in the VM things are optimized into branches
and native representation (in certain circumstances).  I don't see any 
reason that we wouldn't expect the Smalltalk->Parrot compiler to make 
similar adjustments, invisible as they may be at the language level.

Philip

-----Original Message-----
From: Leopold Toetsch [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 14:42
To: P6I
Subject: Q: can, callmeth ...


As ParrotObjects and plain PMCs seems to get more and more unified, the 
question arises, if all PMC vtables should be invocable via the standard 
method invocation for real objects:

   new P2, .PerlString
   can I0, P2, "_set_string_native"   # = 1
   set S0, "_set_string_native"
   set P5, P2
   set S5, "hello"
   callmeth
# or find_method, invoke

Not that I would recommend that but I can imagine, that HLL with "all is 
an object philosophy" would like to call all methods like above.

leo


This communication together with any attachments transmitted with it ("this E-Mail") 
is intended only for the use of the addressee and may contain information which is 
privileged and confidential.  If the reader of this E-Mail is not the intended 
recipient or the employee or agent responsible for delivering it to the intended 
recipient you are hereby notified that any use, dissemination, forwarding, printing or 
copying of this E-Mail is strictly prohibited.  Addressees should check this E-mail 
for viruses.  The Company makes no representations as regards the absence of viruses 
in this E-Mail.  If you have received this E-Mail in error please notify our ISe 
Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL 
PROTECTED]  Please then immediately delete, erase or otherwise destroy this E-Mail and 
any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not necessarily 
constitute the views of the Company.  Nothing in this E-Mail shall bind the Company in 
any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc 
and/or any of its subsidiaries.

Please feel free to visit our website:  http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton 
Business Park, Wales Farm Road, London W3 6RS

Reply via email to