[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
glue example: template file
- To: self-interest@myself.stanford.edu (Self mailing list)
- Subject: glue example: template file
- From: hernan@cc.gatech.edu (Hernan Astudillo R.)
- Date: Fri, 12 Feb 93 19:07:12 EST
- Resent-date: Fri, 12 Feb 93 16:08:11 PST
- Resent-from: Urs Hoelzle <urs@otis>
- Resent-message-id: <9302130008.AA01188@otis.Stanford.Edu>
- Resent-to: real-self-interest
*** FILE "greetingGlueTemplate.self" ***
"*** Hernan Astudillo R.
*** Feb 10, 1992
*** (adapted from termcapTemplates.self)"
"Template used by primitiveMaker to create Self wrapper and .h file."
primitiveMaker reader copy dynamicLinking create: 'greetingGlue' From: '
-- Hernan Astudillo R, Feb 10, 1992
-- (hernan@cc.gatech.edu)
-- template file: greetingGlueTemplates.self
traits: traits greetingClass
macroName: greetingClass
glueLibraryName: libgreetingGlue.so.0
^ void greeting_new_glue: string = Greeting {greetingProto deadCopy} new
^ Greeting greeting_delete_glue = void delete
^ Greeting greeting_sayIt_glue: int = void callMember sayIt
'
"*** These templates define glue for the following C++ expressions:
new Greeting( <aString> )
//returning the result in (greetingProto deadCopy)
delete <aGreeting>
<aGreeting>->sayIt( <anInt> )
***"
"end templates"