Re: Equivalents to policy classes in D

2012-04-02 Thread Cristi Cobzarenco
main() { auto arr1 = Array!(int, UncheckedIndices)( 10 ); auto arr2 = Array!(int, CheckedIndices)( 10 ); arr2[ 11 ] = 5; } --- Cristi Cobzarenco BSc in Artificial Intelligence and Computer Science University of Edinburgh Profile: http://www.google.com/profiles/cristi.cobzarenco On 3 April 2012

Re: reading in text files

2011-08-24 Thread Cristi Cobzarenco
The program reads the "file" from stdin, so you need to redirect stdin to the file you want: try "./readingHamlet < hamlet.txt" or "cat hamlet.txt | ./readingHamlet" without the quotes on a *NIX system. --- Cristi Cobzarenco BSc in Artificial Intelligence a