DefMod Syntax
Tom Hughes
tom at compton.nu
Wed Mar 8 23:39:12 GMT 2000
In message <200003081944.LAA06788 at purple.trimedia.sv.sc.philips.com>
"Jonathan Coxhead" <jonathan at doves.demon.co.uk> wrote:
> Are you committed to "FullMessage" everywhere? I think that the
> full message will be more commonly used, so it deserves a shorter
> form of the name. My proposal was to give the full message the same
> name as the message body, but with "Message" deleted. (Ideally, the
> full message would have had the name with "Message", and the message
> body would have had the name with "MessageBody", but it's too late
> for that now.) I don't know if this would lead to any name clashes
> with other types.
I think I probably prefer your scheme as well.
> A different way to do it is to declare 2 different message types
>
> TYPE
> InetSuite_OpenURLDirect =
> .Struct: Wimp_MessageHeader
> (
> [236] .Char: url
> ),
>
> InetSuite_OpenURLIndirect =
> .Struct: Wimp_MessageHeader
> (
> .Int: tag,
> ...
> )
I think I probably prefer this solution.
> and then make a union from them separately
>
> TYPE
> InetSuite_OpenURL =
> .Union
> (
> InetSuite_OpenURLDirect: direct,
> InetSuite_OpenURLIndirect: indirect
> )
I'm not sure this is even necessary is it? other that possibly
for completeness...
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
...Please! I can manipulate myself without your help.
More information about the oslib-team
mailing list