Error: function declaration without return type.

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 6 21:48:09 PST 2015


On Tue, 06 Jan 2015 21:25:49 +0000
Suliman via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> On Tuesday, 6 January 2015 at 21:19:38 UTC, bearophile wrote:
> > Suliman:
> >
> >> 	void foo()
> >> 	{
> >> 	writeln("test");
> >> 	writeln(mystring);
> >> 	}
> >> 	foo();   <<<<<
> >> }
> >
> > I guess you have to remove that line.
> >
> > Bye,
> > bearophile
> 
> Why? I can't call function in instance of class?
'cause dlang specs (which you read with a great care, aren't you?)
doesn't allow it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150107/a591fab5/attachment.sig>


More information about the Digitalmars-d-learn mailing list