From: "Michael Wohlwend" <micha-1@fantasymail.de>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] native values in objects from c
Date: Thu, 31 Aug 2006 10:22:56 +0200 [thread overview]
Message-ID: <20060831082256.165610@gmx.net> (raw)
In-Reply-To: <20060831.155512.94497249.garrigue@math.nagoya-u.ac.jp>
-------- Original-Nachricht --------
Datum: Thu, 31 Aug 2006 15:55:12 +0900 (JST)
Von: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
An: micha-1@fantasymail.de
Betreff: Re: [Caml-list] native values in objects from c
> Aargh, you're right. The behaviour changed between 3.08 and 3.09.
> In 3.08, fields are still ordered in definition order, including
> inherited ones, but in 3.09, due to an optimization, inherited fields
> appear after newly defined ones. The trouble is that this being due
> to an optimization, this may change again, so it is not a good idea to
> depend on it.
o.k., accessing the field from c allready seemed hacky to me :-)
> A better approach it to add a method which returns the field with an
> abstract type, this way users cannot break the type system.
o.k., seems indeed the safer way.
thanks,
Michael
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
prev parent reply other threads:[~2006-08-31 8:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 11:50 Michael Wohlwend
2006-08-29 13:05 ` [Caml-list] " Jacques Garrigue
2006-08-29 14:07 ` Michael Wohlwend
2006-08-31 6:55 ` Jacques Garrigue
2006-08-31 8:22 ` Michael Wohlwend [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060831082256.165610@gmx.net \
--to=micha-1@fantasymail.de \
--cc=caml-list@inria.fr \
--cc=garrigue@math.nagoya-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox