Peter,

I got it up & running after three build attempts. Eventually, a clean
build was required. *SHRUG*

Generics! Woohoo! :-) :-)

Cheers,

John

> -----Original Message-----
> From: Discussion of the Rotor Shared Source CLI
> implementation [mailto:[EMAIL PROTECTED]] On
> Behalf Of Peter Drayton
> Sent: Wednesday, September 04, 2002 11:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: PRB: Building Gyro Samples
>
>
> It worked fine for me - I set up a brand new sscli tree,
> installed gyro into it, did a buildall, and everything built
> fine. Have you tried doing a build.exe in
> %ROTOR_dir%\samples? What does build.err show?
>
> Apart from my standard fumble when working with Rotor (i.e.
> forgetting to use clix.exe the first time and wondering why
> the desktop CLR didn't understand the genericized IL ;), it
> all worked perfectly first time. Somewhat predictably, this
> was the first thing I tried:
>
> using System;
> using System.Collections;
> class Stack<T> {
>   T[] s = new T[10];
>   int tos;
>   public void Push(T x) {
>     if (tos >= s.Length) {
>       T[] tmp = new T[tos*2];
>       Array.Copy(s, tmp, tos);
>       s = tmp;
>     }
>     s[tos++] = x;
>   }
>   public T Pop() {
>     return s[--tos];
>   }
> }
> class StackOfTFun {
>   static void Main() {
>     Stack<int> si = new Stack<int>();
>     si.Push(42);
>     Console.WriteLine(si.Pop());
>   }
> }
>
> Congrats to Dave Berry & the other 'guilty' parties from the
> Rotor/MSR/CLR team for getting this out - it's a great
> example of how the SSCLI can be a public testbed for research
> innovation. It's definitely time for some serious tinkering!
>
> --Peter
> http://www.razorsoft.net/weblog
> http://staff.develop.com/peterd
>
> > -----Original Message-----
> > From: Discussion of the Rotor Shared Source CLI implementation
> > [mailto:[EMAIL PROTECTED]] On Behalf Of John Bristowe
> > Sent: Wednesday, September 04, 2002 9:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: [DOTNET-ROTOR] PRB: Building Gyro Samples
> > Importance: Low
> >
> >
> > All,
> >
> > Has anyone else experienced problems building the generic samples
> > after installing Gyro?
> >
> > Cheers,
> >
> > John
> >
>

Reply via email to