Changes between Version 6 and Version 7 of HllInteroperability

Show
Ignore:
Timestamp:
06/26/09 19:13:21 (5 years ago)
Author:
tene
Comment:

Add more to the usage example

Legend:

Unmodified
Added
Removed
Modified
  • HllInteroperability

    v6 v7  
    2323An example implementation of a 'foreign_load' function: 
    2424{{{ 
     25.HLL 'example' 
     26 
    2527.sub 'foreign_load' 
    2628    .param string lang 
     
    5153    .return (library) 
    5254.end 
     55 
     56.HLL 'parrot' 
     57 
     58# Workaround for a Parrot bug 
     59.sub 'load-language' 
     60    .param pmc name 
     61    load_language name 
     62.end 
     63 
     64# Switch back 
     65.HLL 'example' 
    5366}}}