-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We are allowed to create structs time.Time #17311
Labels
Bug
This tag is applied to issues which reports bugs.
Good First Issue (easy task)
This issue is suitable to be worked on by new contributors.
Comments
Easily accomplished by adding the |
JalonSolov
added
the
Good First Issue (easy task)
This issue is suitable to be worked on by new contributors.
label
Feb 14, 2023
@JalonSolov there's |
Or that. :-) Yes, that would be simpler - just prevent you from creating your own instance. |
I'll pick it up |
#17162 dup |
We can add
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
This tag is applied to issues which reports bugs.
Good First Issue (easy task)
This issue is suitable to be worked on by new contributors.
Describe the bug
It is possible to create time.Time objects which might introduce problems when using the object. For example the code below does not do what you want it to do:
You expect the object today_5am to be today 5 AM but it is actually 1970-01-01 05:00:00. That is because the unix property was not filed in while creating the object.
Suggestion: don't allow the construction of the object outside of the module
Expected Behavior
See description
Current Behavior
See description
Reproduction Steps
See description
Possible Solution
See description
Additional Information/Context
No response
V version
V 0.3.2
Environment details (OS name and version, etc.)
OS: linux, Ubuntu 22.04.1 LTS
Processor: 16 cpus, 64bit, little endian, 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
CC version: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
getwd: /work/farmerbot
vmodules: /home/brandon/.vmodules
vroot: /work/v
vexe: /work/v/v
vexe mtime: 2023-01-18 13:03:15
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.2 f0a252d.2c78078
Git version: git version 2.34.1
Git vroot status: weekly.2023.03-15-g2c780788 (152 commit(s) behind V master)
.git/config present: true
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
The text was updated successfully, but these errors were encountered: