OSM issue
Guido Chari
charig at gmail.com
Tue Aug 11 20:22:01 UTC 2015
2015-08-11 16:46 GMT-03:00 Stefan Marr <php at stefan-marr.de>:
> Hi Guido:
>
> > On 11 Aug 2015, at 21:26, Guido Chari <charig at gmail.com> wrote:
> >
> > Mainly, for creating a new Layout i need a LayoutStrategy.
>
> How about Layout.createLayout()? That is not sufficient?
> That’s what JRuby uses in RubyBasicObject and that’s also what the
> SimpleLanguage uses.
>
I will check this.
>
> Otherwise, you might look at
> com.oracle.truffle.object.basic.DefaultLayoutFactory.
>
Well this is the way i faced with the problem. DefaultLayoutFactory creates
a Layout sending a DefaultStrategy as the second parameter. But the default
factory uses the BasicLayout class and i would like to use a Layout of my
own. If i implement another LayoutFactory for using my own Layout i cannot
use the DefaultStrategy as a parameter because it is not public.
> Hope that helps
> Stefan
>
>
> --
> Stefan Marr
> Johannes Kepler Universität Linz
> http://stefan-marr.de/research/
>
>
>
>
More information about the graal-dev
mailing list