Quantcast

'1921' romanNumber

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

'1921' romanNumber

Joseph Alotta
Shouldn’t this work?


'1921’ romanNumber


I get an error index out of bounds.

Sincerely,

Joe._______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: '1921' romanNumber

Ron Teitelbaum
Hi Joe!

Try this:

'MCMXXI' romanNumber

I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool method to write!

I checked but don't see one :).  

Ron

> -----Original Message-----
> From: [hidden email] [mailto:beginners-
> [hidden email]] On Behalf Of Joseph Alotta
> Sent: Friday, May 13, 2016 12:51 PM
> To: [hidden email]
> Subject: [Newbies] '1921' romanNumber
>
> Shouldn’t this work?
>
>
> '1921’ romanNumber
>
>
> I get an error index out of bounds.
>
> Sincerely,
>
> Joe._______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: '1921' romanNumber

Dan Norton
In reply to this post by Joseph Alotta
On 13 May 2016 at 11:51, Joseph Alotta wrote:

> Shouldn´t this work?
>
>
> '1921´ romanNumber
>
>
> I get an error index out of bounds.
>
> Sincerely,
>
> Joe.

Gee, whatever gave you that idea :-)

Try the following to see how it was intended:

'MCML' romanNumber.

If ever there was a method that needs renaming and a comment, #romanNumber is it.

 - Dan

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: '1921' romanNumber

Jecel Assumpcao Jr
In reply to this post by Ron Teitelbaum
Ron,

> I would think that 1921 asRomanNumerals (or
> asRomanNumber) would be a cool method to write!
>
> I checked but don't see one :).  

1921 printStringRoman

I found that out by trying "roman" in the search field. The method
finder said that no single method could go from 1921 to 'MCMXXI' but
since it also didn't find #romanNumber I decided I had to look for
method names instead.

-- Jecel
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: '1921' romanNumber

Ron Teitelbaum
Hi Jecel,

HAHAHA!  I figured it was there somewhere.  I looked for omanNumber :).

Well done Jecel!  

All the best,

Ron


> From: Jecel Assumpcao Jr.
> Sent: Friday, May 13, 2016 3:33 PM
>
> Ron,
>
> > I would think that 1921 asRomanNumerals (or
> > asRomanNumber) would be a cool method to write!
> >
> > I checked but don't see one :).
>
> 1921 printStringRoman
>
> I found that out by trying "roman" in the search field. The method finder
> said that no single method could go from 1921 to 'MCMXXI' but since it
also
> didn't find #romanNumber I decided I had to look for method names
> instead.
>
> -- Jecel
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: '1921' romanNumber

Nicolas Cellier
In reply to this post by Ron Teitelbaum
Ron Teitelbaum <ron <at> usmedrec.com> writes:

>
> Hi Joe!
>
> Try this:
>
> 'MCMXXI' romanNumber
>
> I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool
method to write!
>
> I checked but don't see one :).  
>
> Ron
>

1921 printStringRoman.

It's not referenced in MethodFinder, so it can't be found that easily.

Nicolas


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: '1921' romanNumber

Ron Teitelbaum
Thanks Nicolas.

Jecel pointed it out too.  I figured it had to be there but yeah I didn't
see it either.

Ron

> -----Original Message-----
> From: nicolas cellier
> Sent: Friday, May 13, 2016 4:33 PM
>
> Ron Teitelbaum <ron <at> usmedrec.com> writes:
>
> >
> > Hi Joe!
> >
> > Try this:
> >
> > 'MCMXXI' romanNumber
> >
> > I would think that 1921 asRomanNumerals (or asRomanNumber) would be
> a cool
> method to write!
> >
> > I checked but don't see one :).
> >
> > Ron
> >
>
> 1921 printStringRoman.
>
> It's not referenced in MethodFinder, so it can't be found that easily.
>
> Nicolas
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Loading...