On 5/19/21 12:18 PM, Martin wrote:
> shouldn't the unix time functions be in std.datetime.Date and
> std.datetime.DateTime instead of std.datetime.SysTime?
I wouldn't expect those modules to publicly import unix time function.
Such functions are found under the core.sys package:
import std.st
Hi,
shouldn't the unix time functions be in std.datetime.Date and
std.datetime.DateTime instead of std.datetime.SysTime?
The documentation states:
- "std.datetime.systime for a point in time with a timezone."
- "std.datetime.date for points in time without timezones."
Unix epoch is 00:00:00 U
On Wed, May 19, 2021 at 05:53:12PM +, Alain De Vos via Digitalmars-d-learn
wrote:
> It seems I need }; for a function a delegate and an alias.
> ```
> double function(int) F = function double(int x) {return x/10.0;};
> double delegate(int) D = delegate double(int x) {return c*x/10.0;};
> ali
It seems I need }; for a function a delegate and an alias.
```
double function(int) F = function double(int x) {return x/10.0;};
double delegate(int) D = delegate double(int x) {return
c*x/10.0;};
alias myfunx=function int(int number) { return number; };
```
On Wednesday, 19 May 2021 at 13:46:55 UTC, Jesse Phillips wrote:
The ; is used to end a statement, but I don't know how to
define that and distinguish it from an expression.
An expression has a value. A statement doesn't.
You can add a `;` at the end of an expression to make a statement
from
On Saturday, 15 May 2021 at 11:51:11 UTC, Adam D. Ruppe wrote:
Meh, don't listen to that nonsense, just write what works for
you. D's strength is that it adapts to different styles and
meets you where you are. Listening to dogmatic sermons about
idiomatic one true ways is throwing that strength
On Tuesday, 18 May 2021 at 16:27:13 UTC, Alain De Vos wrote:
After each } i write a ;
And let the compiler tell me it is an empty instruction.
What are the general rules where ; is not needed after a }
This is a good question, I'm not sure I can provide a concise
answer.
In general you don't
On Tuesday, 18 May 2021 at 23:27:40 UTC, mw wrote:
On Monday, 17 May 2021 at 16:54:07 UTC, mw wrote:
I filed the issue here (still no response yet):
https://github.com/ariovistus/pyd/issues/152
It's fixed now: pyd version >= 0.14.1
👍