rdmd & exception def & multiple files
Charles Hixson
charleshixsn at earthlink.net
Wed Aug 29 15:47:14 PDT 2012
On 08/29/2012 01:36 PM, Dmitry Olshansky wrote:
> On 30-Aug-12 00:14, Charles Hixson wrote:
>> Is the following expected?
>> When I put the exception:
>> class LogicError : Exception
>> {
>> this( string file = __FILE__, size_t line = __LINE__, Throwable
>> next = null )
>> {
>> super( "Internal logic error", file, line, next );
>> }
>> }
>>
>> In the same file as the rest of the program,
>> rdmd --main -unittest avl.d
>> had no trouble with it, but when I put it in a separate file,
>> while:
>> dmd -c -unittest avl.d utils.d
>> accepted it without complaint, rdmd responded with:
>> rdmd --main -unittest avl.d utils.d
>
> It should work with plain rdmd --main -unittest avl.d that's the whole
> point of rdmd actually.
>
You were right. That worked. Where should I look to better understand
rdmd? I expected to need to list all the local files that were needed,
but clearly that's the wrong approach.
More information about the Digitalmars-d-learn
mailing list