Hey guys.
I come to you because I've tested this Program written in C# elsewhere with Mono, and it seems to be the FreeBSD Mono implementation. Why, I'm not certain... Anyway, it's a pretty short question, and one that may involve me Compiling Mono by Source.
First, the Code, which is Open Source...
Now, as you can probably guess, Mono will normally only generate warnings for unused items (Variables, Classes, Methods, etc..)... However, running
Ah, Programming:


C#:
// Using statements to import classes
using System;
using System.IO;
using System.Threading;
// namespace
namespace Pill_Prompt
{
// class definition
public class Pill_Popper_Prompt
{
// private data members
private String list_of_meds;
private int number_of_meds;
private String med_schedule;
// public constructor
public Pill_Popper_Prompt()
{
Console.WriteLine("Welcome to Pill Popper! The pill manager that aims to help in the dispensation of your medication!\n");
Console.Write("Now then... Begin by entering the amount of meds you are currently prescibed >>>");
number_of_meds = Convert.ToInt32(Console.ReadLine());
}
// Public accessor for list_of_meds
public int Get_Number_Of_Meds()
{
return number_of_meds;
}
// Rest of accessors go here
// etc.
// likewise any public setters/mutators for class members
}
} // end namespace PillPrompt
namespace Pill_Popper_Main
{
public class Pill_Popper
{
static void Main()
{
}
}
}
Now, as you can probably guess, Mono will normally only generate warnings for unused items (Variables, Classes, Methods, etc..)... However, running
mcs
on FreeBSD 12 generates an error about an "unexpected Symbol" on line 27, but..... Wait, never mind, for some reason, it works now. I'll leave it up to the Mods to remove or keep this post up here. 